Skip to content

Commit b8a49bf

Browse files
update llga to 70258d3 to include graph compiler fix for LLVM symbols (#1220)
* update llga to 70258d3 to include graph compiler fix for LLVM symbols * SC shouldn't link to PyTorch's LLVM symbols exposed by IPEX Co-authored-by: sanchitintel <sanchit.jain@intel.com>
1 parent da43c59 commit b8a49bf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

csrc/cpu/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ target_link_libraries(${PLUGIN_NAME_CPU} PUBLIC dnnl_graph)
145145
if (DEFINED ENV{DNNL_GRAPH_BUILD_COMPILER_BACKEND})
146146
get_target_property(DNNL_GRAPHCOMPILER_LLVM_LIB dnnl_graphcompiler_llvm_lib INTERFACE_LINK_LIBRARIES)
147147
target_link_libraries(${PLUGIN_NAME_CPU} PUBLIC graphcompiler ${DNNL_GRAPHCOMPILER_LLVM_LIB})
148+
# BUILD_SHARED_LIBS is not used to control ipex library type, it is always shared
149+
if (NOT MSVC)
150+
get_target_property(DNNL_GRAPHCOMPILER_LLVM_LIB_EXCLUDE dnnl_graphcompiler_llvm_lib_exclude_string INTERFACE_LINK_LIBRARIES)
151+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs=${DNNL_GRAPHCOMPILER_LLVM_LIB_EXCLUDE}")
152+
endif()
148153
endif()
149154

150155
find_library(MKL_LIBRARY libmkl_core.a PATHS "${MKL_INSTALL_DIR}/lib" "${MKL_INSTALL_DIR}/lib/intel64")

third_party/ideep

Submodule ideep updated 1 file

0 commit comments

Comments
 (0)