Skip to content

Commit

Permalink
[3rdparty] Remove mklml dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
changqi1 committed Nov 9, 2023
1 parent 761429a commit 8151d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
8 changes: 2 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 8151d4a

Please sign in to comment.