Skip to content

Commit 0b084c6

Browse files
committed
update code.
1 parent 3a0300e commit 0b084c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BuildOnWindows.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if(BUILD_SEPARATE_OPS)
3434
${ATen_XPU_NATIVE_CPP_SRCS}
3535
${ATen_XPU_GEN_SRCS})
3636
target_compile_definitions(torch_xpu_ops PRIVATE TORCH_XPU_BUILD_MAIN_LIB)
37+
list(APPEND TORCH_XPU_OPS_LIBRARIES torch_xpu_ops)
3738

3839
foreach(sycl_src ${ATen_XPU_SYCL_SRCS})
3940
get_filename_component(name ${sycl_src} NAME_WLE REALPATH)
@@ -48,7 +49,7 @@ if(BUILD_SEPARATE_OPS)
4849
# Decouple with PyTorch cmake definition.
4950
install(TARGETS ${sycl_lib} DESTINATION "${TORCH_INSTALL_LIB_DIR}")
5051
endforeach()
51-
52+
5253
list(APPEND TORCH_XPU_OPS_LIBRARIES torch_xpu_ops)
5354
# Working with the compilers which don't support device code compression, we have to split kernels
5455
# into multiple libraries to meet the bin size limitation.

0 commit comments

Comments
 (0)