Skip to content

Commit 908b534

Browse files
committed
disable libxsmm by default
1 parent 1c5d6c5 commit 908b534

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmake/external/libxsmm.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@
1313
# limitations under the License.
1414
#
1515

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)
1819
return()
1920
ENDIF()
2021

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)
2325
return()
2426
ENDIF()
2527

2628
INCLUDE (ExternalProject)
2729

28-
SET(WITH_LIBXSMM ON)
2930
SET(LIBXSMM_SOURCES_DIR ${THIRD_PARTY_PATH}/libxsmm)
3031
SET(LIBXSMM_INSTALL_DIR ${THIRD_PARTY_PATH}/install/libxsmm)
3132
SET(LIBXSMM_INCLUDE_DIR "${LIBXSMM_INSTALL_DIR}/include" CACHE PATH "LIBXSMM include directory." FORCE)

0 commit comments

Comments
 (0)