We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f28a0 commit 18f1f53Copy full SHA for 18f1f53
CMakeLists.txt
@@ -108,14 +108,11 @@ else()
108
set(THIRD_PARTY_BUILD_TYPE Release)
109
endif()
110
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()
+set(WITH_MKLML ${WITH_MKL})
+if (WITH_MKL AND ${AVX2_FOUND})
+ set(WITH_MKLDNN ON)
117
else()
118
- set(WITH_MKLML OFF)
+ message(STATUS "Do not have AVX2 intrinsics and disabled MKL-DNN")
119
set(WITH_MKLDNN OFF)
120
121
0 commit comments