Skip to content

Commit 2425dad

Browse files
committed
update code.
1 parent ed01046 commit 2425dad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BuildOnWindows.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ macro(setup_common_libraries)
1515
${ATen_XPU_MKL_SRCS}
1616
${ATen_XPU_NATIVE_CPP_SRCS}
1717
${ATen_XPU_GEN_SRCS})
18+
install(TARGETS torch_xpu_ops DESTINATION "${TORCH_INSTALL_LIB_DIR}")
1819
install(TARGETS torch_xpu_ops_aten DESTINATION "${TORCH_INSTALL_LIB_DIR}")
1920
target_compile_definitions(torch_xpu_ops_aten PRIVATE TORCH_XPU_BUILD_MAIN_LIB)
2021
target_link_libraries(torch_xpu_ops_aten PUBLIC torch_xpu)
@@ -33,6 +34,7 @@ if(BUILD_SEPARATE_OPS)
3334
SYCL_SOURCES ${sycl_src})
3435
target_compile_definitions(${sycl_lib} PRIVATE TORCH_XPU_BUILD_MAIN_LIB)
3536
target_link_libraries(torch_xpu_ops_aten PUBLIC ${sycl_lib})
37+
target_link_libraries(torch_xpu_ops PUBLIC ${sycl_lib})
3638
list(APPEND TORCH_XPU_OPS_LIBRARIES ${sycl_lib})
3739

3840
# Decouple with PyTorch cmake definition.

0 commit comments

Comments
 (0)