File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ if(ANDROID OR IOS)
103
103
add_definitions (-DPADDLE_MOBILE_INFERENCE )
104
104
endif ()
105
105
106
+ if (APPLE )
107
+ set (WITH_MKL OFF CACHE STRING
108
+ "Disable MKL for building on mac" FORCE )
109
+ endif ()
110
+
106
111
set (THIRD_PARTY_PATH "${CMAKE_BINARY_DIR} /third_party" CACHE STRING
107
112
"A path setting third party libraries download & build directories." )
108
113
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ IF(WIN32 OR APPLE)
28
28
"Windows or Mac is not supported with MKLDNN in Paddle yet."
29
29
"Force WITH_MKLDNN=OFF" )
30
30
SET (WITH_MKLDNN OFF CACHE STRING "Disable MKLDNN in Windows and MacOS" FORCE )
31
- IF ((NOT ${WITH_MKLDNN} ) AND (NOT ${WITH_MKLML} ))
32
- SET (WITH_MKL OFF CACHE STRING "Disable MKL for later scripts" FORCE )
33
- ENDIF ()
34
31
return ()
35
32
ENDIF ()
36
33
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ IF(WIN32 OR APPLE)
21
21
"Windows or Mac is not supported with MKLML in Paddle yet."
22
22
"Force WITH_MKLML=OFF" )
23
23
SET (WITH_MKLML OFF CACHE STRING "Disable MKLML package in Windows and MacOS" FORCE )
24
- IF ((NOT ${WITH_MKLDNN} ) AND (NOT ${WITH_MKLML} ))
25
- SET (WITH_MKL OFF CACHE STRING "Disable MKL for later scripts" FORCE )
26
- ENDIF ()
27
24
return ()
28
25
ENDIF ()
29
26
You can’t perform that action at this time.
0 commit comments