Skip to content

Commit

Permalink
cmake: check USE_OPENMP and pass proper MKL-DNN build flags (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv authored and Zheng committed Jan 21, 2020
1 parent 6cd2ee7 commit f6d69e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ if(USE_MKLDNN)
set(MKLDNN_ENABLE_JIT_PROFILING OFF CACHE INTERNAL "" FORCE)
set(MKLDNN_LIBRARY_TYPE STATIC CACHE INTERNAL "" FORCE)

if(NOT USE_OPENMP)
set(MKLDNN_CPU_RUNTIME SEQ CACHE INTERNAL "" FORCE)
endif()

add_subdirectory(3rdparty/mkldnn)

include_directories(3rdparty/mkldnn/include)
Expand Down

0 comments on commit f6d69e8

Please sign in to comment.