Skip to content

Commit

Permalink
Fix pytorch issue 29722 wrong MKLDNN_THREADING
Browse files Browse the repository at this point in the history
MKLDNN determines by itself if intel openmp is present or not. Setting this variable here prevents it from using intel openmp. This results in the behavior described in pytorch#29722
  • Loading branch information
CeadeS committed Nov 21, 2019
1 parent f7b12a9 commit ee97481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindMKLDNN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ENDIF(MKL_FOUND)

SET(MKL_cmake_included TRUE)
IF (NOT MKLDNN_THREADING)
SET(MKLDNN_THREADING "OMP:COMP" CACHE STRING "")
SET(MKLDNN_THREADING "OMP" CACHE STRING "")
ELSEIF (MKLDNN_THREADING STREQUAL "TBB")
IF (USE_TBB)
MESSAGE(STATUS "MKL-DNN is using TBB")
Expand Down

0 comments on commit ee97481

Please sign in to comment.