mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
3d2dd14217
commit
891ba2ec8a
@ -95,7 +95,7 @@ if (SYCL_COMPILER_VERSION VERSION_LESS_EQUAL PYTORCH_2_5_SYCL_TOOLKIT_VERSION)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
# On Windows, the SYCL library is named sycl7.lib until PYTORCH_2_5_SYCL_TOOLKIT_VERSION.
|
||||
# sycl.lib is supported in the later version.
|
||||
set(sycl_lib_sufix "7")
|
||||
set(sycl_lib_suffix "7")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user