mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
When `XPU_ARCH_FLAGS` is an empty string, compilation will fail on `C10_STRINGIZE(XPU_ARCH_FLAGS)` in file `torch/csrc/xpu/Module.cpp` on Windows. This PR fixes this issue by setting `TORCH_XPU_ARCH_LIST` to `""` to avoid an empty string conversion in `C10_STRINGIZE()` when compiling without an AOT. Pull Request resolved: https://github.com/pytorch/pytorch/pull/153604 Approved by: https://github.com/guangyey, https://github.com/EikanWang Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com> Co-authored-by: Yu, Guangye <106960996+guangyey@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| Event.cpp | ||
| Event.h | ||
| Module.cpp | ||
| Module.h | ||
| Stream.cpp | ||
| Stream.h | ||