We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa9749 commit ed01046Copy full SHA for ed01046
src/BuildOnWindows.cmake
@@ -8,8 +8,6 @@ macro(setup_common_libraries)
8
torch_xpu_ops
9
STATIC
10
${ATen_XPU_CPP_SRCS})
11
- set(PATH_TO_TORCH_XPU_OPS_ATEN_LIB \"torch_xpu_ops_aten.dll\")
12
- target_compile_options(torch_xpu_ops PRIVATE -DPATH_TO_TORCH_XPU_OPS_ATEN_LIB=${PATH_TO_TORCH_XPU_OPS_ATEN_LIB})
13
14
add_library(
15
torch_xpu_ops_aten
@@ -33,6 +31,7 @@ if(BUILD_SEPARATE_OPS)
33
31
${sycl_lib}
34
32
SHARED
35
SYCL_SOURCES ${sycl_src})
+ target_compile_definitions(${sycl_lib} PRIVATE TORCH_XPU_BUILD_MAIN_LIB)
36
target_link_libraries(torch_xpu_ops_aten PUBLIC ${sycl_lib})
37
list(APPEND TORCH_XPU_OPS_LIBRARIES ${sycl_lib})
38
0 commit comments