提交 b5de21e8 编写于 作者: T tensor-tang

enable cmake option WITH_MKLDNN

上级 661826a7
...@@ -117,13 +117,14 @@ else() ...@@ -117,13 +117,14 @@ else()
endif() endif()
set(WITH_MKLML ${WITH_MKL}) set(WITH_MKLML ${WITH_MKL})
if (WITH_MKL AND AVX2_FOUND) if (NOT DEFINED WITH_MKLDNN)
set(WITH_MKLDNN ON) if (WITH_MKL AND AVX2_FOUND)
else() set(WITH_MKLDNN ON)
message(STATUS "Do not have AVX2 intrinsics and disabled MKL-DNN") else()
set(WITH_MKLDNN OFF) message(STATUS "Do not have AVX2 intrinsics and disabled MKL-DNN")
set(WITH_MKLDNN OFF)
endif()
endif() endif()
######################################################################################## ########################################################################################
include(external/mklml) # download mklml package include(external/mklml) # download mklml package
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册