2008-07-11 02:28:50 +08:00
|
|
|
|
2011-01-31 17:45:03 +08:00
|
|
|
if (MKL_LIBRARIES)
|
|
|
|
set(MKL_FIND_QUIETLY TRUE)
|
|
|
|
endif (MKL_LIBRARIES)
|
2008-07-11 02:28:50 +08:00
|
|
|
|
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
|
2011-01-27 00:58:01 +08:00
|
|
|
/opt/intel/Compiler/*/*/mkl/lib/em64t
|
2008-07-11 02:28:50 +08:00
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
2011-01-27 00:58:01 +08:00
|
|
|
find_library(MKL_GUIDE
|
|
|
|
guide
|
|
|
|
PATHS
|
|
|
|
$ENV{MKLLIB}
|
|
|
|
/opt/intel/mkl/*/lib/em64t
|
|
|
|
/opt/intel/Compiler/*/*/mkl/lib/em64t
|
|
|
|
/opt/intel/Compiler/*/*/lib/intel64
|
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(MKL_LIBRARIES AND MKL_GUIDE)
|
|
|
|
set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel_lp64 mkl_sequential ${MKL_GUIDE} pthread)
|
|
|
|
endif()
|
2008-07-11 02:28:50 +08:00
|
|
|
|
|
|
|
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
|
2011-01-27 00:58:01 +08:00
|
|
|
/opt/intel/Compiler/*/*/mkl/lib/32
|
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(MKL_GUIDE
|
|
|
|
guide
|
|
|
|
PATHS
|
|
|
|
$ENV{MKLLIB}
|
|
|
|
/opt/intel/mkl/*/lib/32
|
|
|
|
/opt/intel/Compiler/*/*/mkl/lib/32
|
|
|
|
/opt/intel/Compiler/*/*/lib/intel32
|
2008-07-11 02:28:50 +08:00
|
|
|
${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
2011-01-27 00:58:01 +08:00
|
|
|
if(MKL_LIBRARIES AND MKL_GUIDE)
|
|
|
|
set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel mkl_sequential ${MKL_GUIDE} pthread)
|
|
|
|
endif()
|
2008-07-13 07:34:42 +08:00
|
|
|
|
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)
|
2011-01-31 17:45:03 +08:00
|
|
|
find_package_handle_standard_args(MKL DEFAULT_MSG MKL_LIBRARIES)
|
2008-07-11 02:28:50 +08:00
|
|
|
|
2011-01-31 17:45:03 +08:00
|
|
|
mark_as_advanced(MKL_LIBRARIES)
|