File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
#
15
15
16
- # NOTE: libxsmm is enabled with with_mkl, add new option if necessary
17
- IF (NOT WITH_MKL )
16
+ OPTION (WITH_LIBXSMM "Compile with libxsmm" OFF )
17
+
18
+ IF (NOT WITH_LIBXSMM )
18
19
return ()
19
20
ENDIF ()
20
21
21
- IF (WIN32 OR APPLE )
22
- MESSAGE (WARNING "Windows or Mac is not supported with libxsmm in Paddle yet." )
22
+ IF (WIN32 OR APPLE OR ANDROID OR IOS )
23
+ MESSAGE (WARNING "Windows, Mac or Mobile are not supported with libxsmm in Paddle yet." )
24
+ SET (WITH_LIBXSMM OFF CACHE STRING "Disable LIBXSMM" FORCE )
23
25
return ()
24
26
ENDIF ()
25
27
26
28
INCLUDE (ExternalProject )
27
29
28
- SET (WITH_LIBXSMM ON )
29
30
SET (LIBXSMM_SOURCES_DIR ${THIRD_PARTY_PATH} /libxsmm )
30
31
SET (LIBXSMM_INSTALL_DIR ${THIRD_PARTY_PATH} /install/libxsmm )
31
32
SET (LIBXSMM_INCLUDE_DIR "${LIBXSMM_INSTALL_DIR} /include" CACHE PATH "LIBXSMM include directory." FORCE )
You can’t perform that action at this time.
0 commit comments