aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindXsmm.cmake
blob: 809d6f414e81a9e71181107d6a9e39e37b860434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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

if (LIBXSMM)
  set(XSMM_FIND_QUIETLY TRUE)
  set(XSMM_INCLUDES ${LIBXSMM}/include)
  set(XSMM_LIBRARIES ${LIBXSMM}/lib)
endif (LIBXSMM)

find_path(LIBXSMM 
  NAMES 
  libxsmm.h 
  PATHS 
  $ENV{XSMMDIR}/include 
  ${INCLUDE_INSTALL_DIR} 
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(XSMM DEFAULT_MSG
                                  LIBXSMM)

mark_as_advanced(LIBXSMM)