Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit e238d5f

Browse files
silee2diyessi
authored andcommitted
mklml on linux has no soname set. This will cause linking against the full path for mklml when using prebuilt mkldnn and mklml. (#2851)
1 parent 7941531 commit e238d5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/external_mkldnn.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ if(MKLDNN_INCLUDE_DIR AND MKLDNN_LIB_DIR)
6464
set_property(TARGET libmkl PROPERTY IMPORTED_LOCATION ${MKLML_LIB_DIR}/${MKLML_LIB})
6565
set_target_properties(libmkl PROPERTIES
6666
IMPORTED_LINK_INTERFACE_LIBRARIES ${MKLML_LIB_DIR}/${OMP_LIB})
67+
if(LINUX)
68+
set_property(TARGET libmkl PROPERTY IMPORTED_NO_SONAME 1)
69+
endif()
6770
endif()
6871

6972
if(WIN32)

0 commit comments

Comments
 (0)