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 Allow building for sm90a (#125523) 2024-05-06 20:03:12 +00:00
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 [Submodule] Remove third-party onnx-tensorrt (#126542) 2024-05-19 22:34:24 +00:00
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 [executorch] Update iOS toolchain with a modern cmake syntax. (#115799) 2023-12-15 00:51:30 +00:00
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 [Build] Add linker script optimization (#121975) 2024-04-09 20:22:25 +00:00
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 [BE][CMake] Use FindPython module (#124613) 2024-05-29 13:17:35 +00:00
VulkanDependencies.cmake