Fix xpu cmake typo (#140374)

# Motivation
This PR aims to fix a typo in the CMake build. The typo impacts the XPU Windows build and results in PyTorch being built without XPU, which is unexpected.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140374
Approved by: https://github.com/EikanWang, https://github.com/ezyang, https://github.com/atalman
This commit is contained in:
Yu, Guangye
2024-11-12 16:07:02 +00:00
committed by PyTorch MergeBot
parent 3d2dd14217
commit 891ba2ec8a

View File

@ -95,7 +95,7 @@ if (SYCL_COMPILER_VERSION VERSION_LESS_EQUAL PYTORCH_2_5_SYCL_TOOLKIT_VERSION)
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows") elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
# On Windows, the SYCL library is named sycl7.lib until PYTORCH_2_5_SYCL_TOOLKIT_VERSION. # On Windows, the SYCL library is named sycl7.lib until PYTORCH_2_5_SYCL_TOOLKIT_VERSION.
# sycl.lib is supported in the later version. # sycl.lib is supported in the later version.
set(sycl_lib_sufix "7") set(sycl_lib_suffix "7")
endif() endif()
endif() endif()