Skip to content

Commit 3b5e90a

Browse files
authored
[XPU] fix compile error in test/quantization/CMakeLists.txt (#76146)
1 parent c75344c commit 3b5e90a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/quantization/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ if(NOT WITH_GPU)
248248
endif()
249249

250250
#
251-
if(${CUDA_ARCH_NAME} STREQUAL "Hopper")
252-
list(REMOVE_ITEM TEST_OPS test_weight_only_linear)
251+
if(NOT WITH_XPU)
252+
if(${CUDA_ARCH_NAME} STREQUAL "Hopper")
253+
list(REMOVE_ITEM TEST_OPS test_weight_only_linear)
254+
endif()
253255
endif()
254256

255257
if(LINUX AND WITH_ONEDNN)

0 commit comments

Comments
 (0)