diff --git a/CMakeLists.txt b/CMakeLists.txt index f16a97c8..0b4fa83d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,6 @@ include("cmake/xdnn.cmake") include(GNUInstallDirs) include_directories(${CMAKE_SOURCE_DIR}/3rdparty/) -include_directories(${CMAKE_SOURCE_DIR}/3rdparty/mklml/include) include_directories(${CMAKE_SOURCE_DIR}/3rdparty/onednn/include) include_directories(${CMAKE_SOURCE_DIR}/3rdparty/onednn/build/include) include_directories(${CMAKE_SOURCE_DIR}/3rdparty/xdnn) @@ -73,12 +72,11 @@ include_directories(${CMAKE_SOURCE_DIR}/src/models) include_directories(${CMAKE_SOURCE_DIR}/src/common) link_directories(${CMAKE_SOURCE_DIR}/src/kernels) -link_directories(${CMAKE_SOURCE_DIR}/3rdparty/mklml/lib) link_directories(${CMAKE_SOURCE_DIR}/3rdparty/onednn/build/src) link_directories(${CMAKE_SOURCE_DIR}/3rdparty/xdnn) set(3RDPART_LIB_LIST "MPI::MPI_CXX" "ccl" "dnnl" "numa") -set(DEPEND_LIST "onednn" "mklml" "xdnn_lib") +set(DEPEND_LIST "onednn" "xdnn_lib") option(BUILD_WITH_SHARED_LIBS "Build with shared libraries" OFF) if(BUILD_WITH_SHARED_LIBS) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8939192d..4f534f2f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,17 +26,13 @@ set(SRC_LIB_LIST "utils" "layers" "kernels" "models" "searchers") target_link_libraries(xfastertransformer_static ${SRC_LIB_LIST} - ${3RDPART_LIB_LIST} - libiomp5.so - libmklml_intel.so) + ${3RDPART_LIB_LIST}) add_library(xfastertransformer SHARED) target_link_libraries(xfastertransformer ${SRC_LIB_LIST} - ${3RDPART_LIB_LIST} - libiomp5.so - libmklml_intel.so) + ${3RDPART_LIB_LIST}) add_dependencies(xfastertransformer_static ${DEPEND_LIST}) add_dependencies(xfastertransformer ${DEPEND_LIST})