|
|
@ -5,11 +5,16 @@
|
|
|
|
# MKL_LIBRARIES - The libraries needed to use mkl
|
|
|
|
# MKL_LIBRARIES - The libraries needed to use mkl
|
|
|
|
# MKL_DEFINITIONS - Compiler switches required for using mkl
|
|
|
|
# MKL_DEFINITIONS - Compiler switches required for using mkl
|
|
|
|
|
|
|
|
|
|
|
|
find_path(MKL_INCLUDE_DIRS
|
|
|
|
find_path(MKL_INCLUDE_DIR
|
|
|
|
NAMES mkl.h
|
|
|
|
NAMES mkl.h
|
|
|
|
HINTS $ENV{MKL_DIR}/include
|
|
|
|
HINTS $ENV{MKL_DIR}/include
|
|
|
|
PATHS)
|
|
|
|
PATHS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_path(MKL_FFTW_INCLUDE_DIR
|
|
|
|
|
|
|
|
NAMES fftw3.h
|
|
|
|
|
|
|
|
HINTS $ENV{MKL_DIR}/include/fftw
|
|
|
|
|
|
|
|
PATHS)
|
|
|
|
|
|
|
|
|
|
|
|
find_library(MKL_LIBRARIES
|
|
|
|
find_library(MKL_LIBRARIES
|
|
|
|
NAMES mkl_rt
|
|
|
|
NAMES mkl_rt
|
|
|
|
HINTS $ENV{MKL_DIR}/lib/intel64
|
|
|
|
HINTS $ENV{MKL_DIR}/lib/intel64
|
|
|
@ -31,6 +36,7 @@ find_library(MKL_SEQ
|
|
|
|
PATHS)
|
|
|
|
PATHS)
|
|
|
|
|
|
|
|
|
|
|
|
set(MKL_STATIC_LIBRARIES -Wl,--start-group ${MKL_CORE} ${MKL_ILP} ${MKL_SEQ} -Wl,--end-group -lpthread -lm -ldl)
|
|
|
|
set(MKL_STATIC_LIBRARIES -Wl,--start-group ${MKL_CORE} ${MKL_ILP} ${MKL_SEQ} -Wl,--end-group -lpthread -lm -ldl)
|
|
|
|
|
|
|
|
set(MKL_INCLUDE_DIRS ${MKL_INCLUDE_DIR} ${MKL_FFTW_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set MKL_FOUND to TRUE
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set MKL_FOUND to TRUE
|
|
|
|