mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-11 22:34:53 +08:00
When building PyTorch with `USE_XPU=True` and Clang, the user sees misleading errors related to incorrect platform detection that assumes that all users that are not using the GNU compilers are on Windows. We can fix this by simply using CMake's builtin platform detection variables. Pull Request resolved: https://github.com/pytorch/pytorch/pull/142067 Approved by: https://github.com/EikanWang, https://github.com/min-jean-cho, https://github.com/guangyey