mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Added support for libxsmm in the eigen makefiles
This commit is contained in:
parent
a34d4ebd74
commit
c19fe5e9ed
24
cmake/FindXsmm.cmake
Normal file
24
cmake/FindXsmm.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
# libxsmm
|
||||
|
||||
if (XSMM_INCLUDES AND XSMM_LIBRARIES)
|
||||
set(XSMM_FIND_QUIETLY TRUE)
|
||||
endif (XSMM_INCLUDES AND XSMM_LIBRARIES)
|
||||
|
||||
find_path(XSMM_INCLUDES
|
||||
NAMES
|
||||
scotch.h
|
||||
PATHS
|
||||
$ENV{XSMMDIR}
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
PATH_SUFFIXES
|
||||
scotch
|
||||
)
|
||||
|
||||
|
||||
find_library(XSMM_LIBRARIES xsmm PATHS $ENV{XSMMDIR} ${LIB_INSTALL_DIR})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(XSMM DEFAULT_MSG
|
||||
XSMM_INCLUDES XSMM_LIBRARIES)
|
||||
|
||||
mark_as_advanced(XSMM_INCLUDES XSMM_LIBRARIES)
|
@ -21,6 +21,15 @@ include_directories(../../test ../../unsupported ../../Eigen
|
||||
|
||||
find_package (Threads)
|
||||
|
||||
find_package(Xsmm)
|
||||
if(XSMM_FOUND)
|
||||
add_definitions("-DEIGEN_USE_LIBXSMM")
|
||||
include_directories(${XSMM_INCLUDES})
|
||||
ei_add_property(EIGEN_TESTED_BACKENDS "Xsmm, ")
|
||||
else(XSMM_FOUND)
|
||||
ei_add_property(EIGEN_MISSING_BACKENDS "Xsmm, ")
|
||||
endif(XSMM_FOUND)
|
||||
|
||||
find_package(GoogleHash)
|
||||
if(GOOGLEHASH_FOUND)
|
||||
add_definitions("-DEIGEN_GOOGLEHASH_SUPPORT")
|
||||
|
Loading…
Reference in New Issue
Block a user