Skip to content

Commit 82037f2

Browse files
committed
To link mkl_sycl_blas forcely
1 parent 3ec20de commit 82037f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/ONEMKL.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ set(TORCH_XPU_OPS_ONEMKL_INCLUDE_DIR ${ONEMKL_INCLUDE_DIR})
1919

2020
set(TORCH_XPU_OPS_ONEMKL_LIBRARIES ${ONEMKL_LIBRARIES})
2121

22-
list(INSERT TORCH_XPU_OPS_ONEMKL_LIBRARIES 1 "-Wl,--start-group")
22+
list(INSERT TORCH_XPU_OPS_ONEMKL_LIBRARIES 3 "-Wl,--start-group")
2323
list(APPEND TORCH_XPU_OPS_ONEMKL_LIBRARIES "-Wl,--end-group")
24+
list(INSERT TORCH_XPU_OPS_ONEMKL_LIBRARIES 0 "-Wl,--no-as-needed")
25+
list(INSERT TORCH_XPU_OPS_ONEMKL_LIBRARIES 4 "-Wl,--as-needed")

0 commit comments

Comments
 (0)