pytorch/caffe2
Xu Han e141cb9c34 export AOTI_TORCH_EXPORT on Windows. (#140030)
Fixes #139954

reproduce UT:
```cmd
pytest test/inductor/test_torchinductor_codegen_dynamic_shapes.py -k test_device_assert_dynamic_shapes_cpu
```
Issue:
<img width="856" alt="image" src="https://github.com/user-attachments/assets/5fc501a9-54e5-45ac-9fb3-509ec11a7abe">

After fixing:
![Image](https://github.com/user-attachments/assets/883846fb-8e92-4b9c-9400-daab32382a3a)

Reland:
1. Declare export on Windows explicitly.
2. Support cpu, cuda and xpu devices.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140030
Approved by: https://github.com/jgong5, https://github.com/desertfire
2025-01-03 05:41:06 +00:00
..
core [Build] Add COMMIT_SHA to caffe2::GetBuildOptions (#141313) 2024-11-26 00:09:36 +00:00
perfkernels [BE][CI] bump ruff to 0.8.4 (#143753) 2024-12-24 12:24:10 +00:00
serialize Format caffe2/serialize (#141850) 2024-12-04 01:14:24 +00:00
utils Re-enable some C++ warnings (#142332) 2024-12-12 04:02:12 +00:00
.clang-format [BE][clang-format] make macro PyObject_HEAD_INIT(type) and PyVarObject_HEAD_INIT(type, size) have its own line (#136949) 2024-10-02 18:39:22 +00:00
CMakeLists.txt export AOTI_TORCH_EXPORT on Windows. (#140030) 2025-01-03 05:41:06 +00:00
unexported_symbols.lds
version_script.lds