fix MKL flag auto detect

guochaorong-patch-1
typhoonzero 7 years ago
parent 55e6e2c4a8
commit 75988275f5

@ -28,6 +28,7 @@ IF(WIN32 OR APPLE)
"Windows or Mac is not supported with MKLDNN in Paddle yet."
"Force WITH_MKLDNN=OFF")
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()
ENDIF()

@ -21,6 +21,7 @@ IF(WIN32 OR APPLE)
"Windows or Mac is not supported with MKLML in Paddle yet."
"Force WITH_MKLML=OFF")
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()
ENDIF()

Loading…
Cancel
Save