From 75988275f53b8e078fe19c0b78f3415646c2e746 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Mon, 9 Jul 2018 11:18:51 +0800 Subject: [PATCH] fix MKL flag auto detect --- cmake/external/mkldnn.cmake | 1 + cmake/external/mklml.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/cmake/external/mkldnn.cmake b/cmake/external/mkldnn.cmake index 20dda35c5..9dc73d239 100644 --- a/cmake/external/mkldnn.cmake +++ b/cmake/external/mkldnn.cmake @@ -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() diff --git a/cmake/external/mklml.cmake b/cmake/external/mklml.cmake index 82c424fb7..30e7b4a8b 100644 --- a/cmake/external/mklml.cmake +++ b/cmake/external/mklml.cmake @@ -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() -- GitLab