2008-07-11 02:28:50 +08:00
|
|
|
|
|
|
|
if (MKL_INCLUDES AND MKL_LIBRARIES)
|
|
|
|
set(CBLAS_FIND_QUIETLY TRUE)
|
|
|
|
endif (MKL_INCLUDES AND MKL_LIBRARIES)
|
|
|
|
|
|
|
|
find_path(MKL_INCLUDES
|
|
|
|
NAMES
|
|
|
|
cblas.h
|
|
|
|
PATHS
|
|
|
|
$ENV{MKLDIR}/include
|
|
|
|
${INCLUDE_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
2008-07-13 05:54:02 +08:00
|
|
|
if(CMAKE_MINOR_VERSION GREATER 4)
|
2008-07-11 02:28:50 +08:00
|
|
|
|
|
|
|
if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
|
|
|
|
|
|
|
find_library(MKL_LIBRARIES
|
|
|
|
mkl_core
|
|
|
|
PATHS
|
|
|
|
$ENV{MKLLIB}
|
|
|
|
/opt/intel/mkl/*/lib/em64t
|
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(MKL_LIBRARIES)
|
|
|
|
set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel_lp64 mkl_sequential guide pthread)
|
|
|
|
endif(MKL_LIBRARIES)
|
|
|
|
|
|
|
|
else(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
|
|
|
|
|
|
|
find_library(MKL_LIBRARIES
|
2008-07-13 07:34:42 +08:00
|
|
|
mkl_core
|
2008-07-11 02:28:50 +08:00
|
|
|
PATHS
|
|
|
|
$ENV{MKLLIB}
|
|
|
|
/opt/intel/mkl/*/lib/32
|
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
2008-07-13 07:34:42 +08:00
|
|
|
if(MKL_LIBRARIES)
|
2008-07-13 07:42:19 +08:00
|
|
|
set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel mkl_sequential guide pthread)
|
2008-07-13 07:34:42 +08:00
|
|
|
endif(MKL_LIBRARIES)
|
|
|
|
|
2008-07-11 02:28:50 +08:00
|
|
|
endif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
|
|
|
|
2008-07-13 05:54:02 +08:00
|
|
|
endif(CMAKE_MINOR_VERSION GREATER 4)
|
|
|
|
|
2008-07-11 02:28:50 +08:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(MKL DEFAULT_MSG
|
|
|
|
MKL_INCLUDES MKL_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(MKL_INCLUDES MKL_LIBRARIES)
|