Skip to content

Commit ac72943

Browse files
committed
fix(mkl): add install loop for static linking to fix Python wheel build
- Static linking (MKL_STATIC_LINK=ON) is used by Python wheel builds - Missing install loop caused Python Build X86 CI to fail - Add foreach loop to install static MKL libraries (libmkl_intel_lp64.a, libmkl_intel_thread.a, libmkl_core.a, libiomp5.a) Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
1 parent 558a037 commit ac72943

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extern/mkl/mkl.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ if (MKL_STATIC_LINK)
6262
"${MKL_PATH}/libmkl_core.a"
6363
"${OMP_PATH}/libiomp5.a"
6464
)
65+
66+
foreach (mkllib ${MKL_INSTALL_LIBS})
67+
if (EXISTS ${mkllib})
68+
install (FILES ${mkllib} DESTINATION ${CMAKE_INSTALL_LIBDIR})
69+
endif ()
70+
endforeach ()
6571
message (STATUS "Enabled Intel MKL as BLAS backend (STATIC linking).")
6672

6773
else ()

0 commit comments

Comments
 (0)