pytorch/cmake
Yu, Guangye 8051ee802c Add XPU compiler version control in cmake to keep BC (#139258)
# Motivation
This PR aims to maintain backward compatibility when building PyTorch XPU with the old and new compilers.

# Additional Context
The details are described here. The new compiler (2025.0.0) has some breaking changes compared with the old compiler(2024.1), for examples:
1. On Windows, sycl library is named `sycl7.lib` in the old compiler but is named `sycl.lib` in the new compiler.
2. On Linux, in order to support ABI=0, we have to link `libsycl-preview.so` in the old compiler but we could link `libsycl.so` in the new compiler to have the same ABI compatibility.
3. We added a macro `SYCL_COMPILER_VERSION` to support our new code has good backward compatibility with the old compiler. Now the new feature(Event elapsed_time, memory summary, and device architecture property) introduced by the new compiler will be controlled within the macro `SYCL_COMPILER_VERSION`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139258
Approved by: https://github.com/EikanWang, https://github.com/atalman, https://github.com/gujinghui
2024-11-09 13:31:21 +00:00
..
External Remove legacy Caffe2 pthreadpool from CMake (#134936) 2024-10-17 05:22:08 +00:00
Modules Add XPU compiler version control in cmake to keep BC (#139258) 2024-11-09 13:31:21 +00:00
Modules_CUDA_fix
public Add XPU compiler version control in cmake to keep BC (#139258) 2024-11-09 13:31:21 +00:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in
CheckAbi.cmake
cmake_uninstall.cmake.in
Codegen.cmake [Intel GPU] Support RegisterXPU.cpp codegen and compile for the in-tree XPU structured GEMM OPs. (#139025) 2024-11-09 13:09:27 +00:00
DebugHelper.cmake
Dependencies.cmake Add XPU compiler version control in cmake to keep BC (#139258) 2024-11-09 13:31:21 +00:00
FlatBuffers.cmake
GoogleTestPatch.cmake
IncludeSource.cpp.in
iOS.cmake
Metal.cmake [BE][MPS] Make metal shaders compile cleanly (#139522) 2024-11-01 23:22:47 +00:00
MiscCheck.cmake Add SVE implementation of embedding_lookup_idx (#133995) 2024-10-15 18:52:44 +00:00
prioritized_text.txt
ProtoBuf.cmake
ProtoBufPatch.cmake
Summary.cmake Add XPU compiler version control in cmake to keep BC (#139258) 2024-11-09 13:31:21 +00:00
TorchConfig.cmake.in Remove legacy Caffe2 pthreadpool from CMake (#134936) 2024-10-17 05:22:08 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake
VulkanDependencies.cmake