8000 optimize code. · pytorch/pytorch@da2d15f · GitHub
[go: up one dir, main page]

Skip to content

Commit da2d15f

Browse files
committed
optimize code.
1 parent e0f13ae commit da2d15f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmake/public/xpu.cmake

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ else()
5151
set(XPU_ENABLE_KINETO FALSE)
5252
endif()
5353

54-
if(${SYCL_COMPILER_VERSION} GREATER_EQUAL 20250101)
55-
set(XPU_ENABLE_KINETO TRUE)
56-
endif()
57-
58-
if(NOT WIN32)
54+
if(WIN32)
55+
if(${SYCL_COMPILER_VERSION} GREATER_EQUAL 20250101)
56+
set(XPU_ENABLE_KINETO TRUE)
57+
endif()
58+
else()
5959
set(XPU_ENABLE_KINETO TRUE)
6060
endif()

0 commit comments

Comments
 (0)
0