Skip to content

Commit a193621

Browse files
committed
To link mkl_sycl_blas forcely
1 parent d156e8b commit a193621

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/ONEMKL.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ set(TORCH_XPU_OPS_ONEMKL_LIBRARIES ${ONEMKL_LIBRARIES})
2121

2222
list(INSERT TORCH_XPU_OPS_ONEMKL_LIBRARIES 1 "-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 2 "-Wl,--as-needed")

0 commit comments

Comments
 (0)