Skip to content

Commit

Permalink
add condition for linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhuanMeng authored Jan 21, 2025
1 parent 69cbddd commit 1627697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BuildOnLinux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if(BUILD_SEPARATE_OPS)
# Decouple with PyTorch cmake definition.
install(TARGETS ${sycl_lib} DESTINATION "${TORCH_INSTALL_LIB_DIR}")
endforeach()
elseif(BUILD_SPLIT_KERNEL_LIB)
elseif(BUILD_SPLIT_KERNEL_LIB OR __INTEL_LLVM_COMPILER LESS 20250002)
# Split SYCL kernels into 4 libraries as categories 1) Unary+Binary 2) Reduce 3) Foreach 4) Others.
set(ATen_XPU_SYCL_UNARY_BINARY_SRCS)
set(ATen_XPU_SYCL_REDUCE_SRCS)
Expand Down

0 comments on commit 1627697

Please sign in to comment.