From 908b53499c34763ff90f3d70eb4eea1830e5df3e Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Wed, 11 Jul 2018 21:14:58 +0800 Subject: [PATCH] disable libxsmm by default --- cmake/external/libxsmm.cmake | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmake/external/libxsmm.cmake b/cmake/external/libxsmm.cmake index 258dc2db7..530f7ebe2 100644 --- a/cmake/external/libxsmm.cmake +++ b/cmake/external/libxsmm.cmake @@ -13,19 +13,20 @@ # limitations under the License. # -# NOTE: libxsmm is enabled with with_mkl, add new option if necessary -IF(NOT WITH_MKL) +OPTION(WITH_LIBXSMM "Compile with libxsmm" OFF) + +IF(NOT WITH_LIBXSMM) return() ENDIF() -IF(WIN32 OR APPLE) - MESSAGE(WARNING "Windows or Mac is not supported with libxsmm in Paddle yet.") +IF(WIN32 OR APPLE OR ANDROID OR IOS) + MESSAGE(WARNING "Windows, Mac or Mobile are not supported with libxsmm in Paddle yet.") + SET(WITH_LIBXSMM OFF CACHE STRING "Disable LIBXSMM" FORCE) return() ENDIF() INCLUDE (ExternalProject) -SET(WITH_LIBXSMM ON) SET(LIBXSMM_SOURCES_DIR ${THIRD_PARTY_PATH}/libxsmm) SET(LIBXSMM_INSTALL_DIR ${THIRD_PARTY_PATH}/install/libxsmm) SET(LIBXSMM_INCLUDE_DIR "${LIBXSMM_INSTALL_DIR}/include" CACHE PATH "LIBXSMM include directory." FORCE) -- GitLab