File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments