2016-12-22 05:44:59 +08:00
|
|
|
# libxsmm support.
|
|
|
|
# libxsmm provides matrix multiplication kernels optimized for
|
|
|
|
# the latest Intel architectures.
|
|
|
|
# Download the library from https://github.com/hfp/libxsmm
|
|
|
|
# Compile with make BLAS=0
|
2016-12-22 02:43:40 +08:00
|
|
|
|
2016-12-22 05:44:59 +08:00
|
|
|
if (LIBXSMM)
|
2016-12-22 02:43:40 +08:00
|
|
|
set(XSMM_FIND_QUIETLY TRUE)
|
2016-12-22 05:44:59 +08:00
|
|
|
set(XSMM_INCLUDES ${LIBXSMM}/include)
|
|
|
|
set(XSMM_LIBRARIES ${LIBXSMM}/lib)
|
|
|
|
endif (LIBXSMM)
|
2016-12-22 02:43:40 +08:00
|
|
|
|
2016-12-22 05:44:59 +08:00
|
|
|
find_path(LIBXSMM
|
2016-12-22 02:43:40 +08:00
|
|
|
NAMES
|
2016-12-22 05:44:59 +08:00
|
|
|
libxsmm.h
|
2016-12-22 02:43:40 +08:00
|
|
|
PATHS
|
2016-12-22 05:44:59 +08:00
|
|
|
$ENV{XSMMDIR}/include
|
2016-12-22 02:43:40 +08:00
|
|
|
${INCLUDE_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(XSMM DEFAULT_MSG
|
2016-12-22 05:44:59 +08:00
|
|
|
LIBXSMM)
|
2016-12-22 02:43:40 +08:00
|
|
|
|
2016-12-22 05:44:59 +08:00
|
|
|
mark_as_advanced(LIBXSMM)
|