Skip to content

Commit 2e7ffbd

Browse files
authored
Merge pull request #5741 from tensor-tang/refine
change message level from warning to status, and fix hard number in paddle version
2 parents 0f83674 + 18f1f53 commit 2e7ffbd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,11 @@ else()
108108
set(THIRD_PARTY_BUILD_TYPE Release)
109109
endif()
110110

111-
if(WITH_MKL)
112-
set(WITH_MKLML ON)
113-
set(WITH_MKLDNN ${AVX2_FOUND})
114-
if(NOT WITH_MKLDNN)
115-
message(WARNING "Do not have AVX2 intrinsics and disabled MKL-DNN")
116-
endif()
111+
set(WITH_MKLML ${WITH_MKL})
112+
if (WITH_MKL AND ${AVX2_FOUND})
113+
set(WITH_MKLDNN ON)
117114
else()
118-
set(WITH_MKLML OFF)
115+
message(STATUS "Do not have AVX2 intrinsics and disabled MKL-DNN")
119116
set(WITH_MKLDNN OFF)
120117
endif()
121118

0 commit comments

Comments
 (0)