提交 75988275 编写于 作者: T typhoonzero

fix MKL flag auto detect

上级 55e6e2c4
...@@ -28,6 +28,7 @@ IF(WIN32 OR APPLE) ...@@ -28,6 +28,7 @@ IF(WIN32 OR APPLE)
"Windows or Mac is not supported with MKLDNN in Paddle yet." "Windows or Mac is not supported with MKLDNN in Paddle yet."
"Force WITH_MKLDNN=OFF") "Force WITH_MKLDNN=OFF")
SET(WITH_MKLDNN OFF CACHE STRING "Disable MKLDNN in Windows and MacOS" FORCE) SET(WITH_MKLDNN OFF CACHE STRING "Disable MKLDNN in Windows and MacOS" FORCE)
SET(WITH_MKL OFF CACHE STRING "Disable MKL for later scripts" FORCE)
return() return()
ENDIF() ENDIF()
......
...@@ -21,6 +21,7 @@ IF(WIN32 OR APPLE) ...@@ -21,6 +21,7 @@ IF(WIN32 OR APPLE)
"Windows or Mac is not supported with MKLML in Paddle yet." "Windows or Mac is not supported with MKLML in Paddle yet."
"Force WITH_MKLML=OFF") "Force WITH_MKLML=OFF")
SET(WITH_MKLML OFF CACHE STRING "Disable MKLML package in Windows and MacOS" FORCE) SET(WITH_MKLML OFF CACHE STRING "Disable MKLML package in Windows and MacOS" FORCE)
SET(WITH_MKL OFF CACHE STRING "Disable MKL for later scripts" FORCE)
return() return()
ENDIF() ENDIF()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册