• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2if (MKL_LIBRARIES)
3  set(MKL_FIND_QUIETLY TRUE)
4endif (MKL_LIBRARIES)
5
6if(CMAKE_MINOR_VERSION GREATER 4)
7
8if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
9
10find_library(MKL_LIBRARIES
11  mkl_core
12  PATHS
13  $ENV{MKLLIB}
14  /opt/intel/mkl/*/lib/em64t
15  /opt/intel/Compiler/*/*/mkl/lib/em64t
16  ${LIB_INSTALL_DIR}
17)
18
19find_library(MKL_GUIDE
20  guide
21  PATHS
22  $ENV{MKLLIB}
23  /opt/intel/mkl/*/lib/em64t
24  /opt/intel/Compiler/*/*/mkl/lib/em64t
25  /opt/intel/Compiler/*/*/lib/intel64
26  ${LIB_INSTALL_DIR}
27)
28
29if(MKL_LIBRARIES AND MKL_GUIDE)
30  set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel_lp64 mkl_sequential ${MKL_GUIDE} pthread)
31endif()
32
33else(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
34
35find_library(MKL_LIBRARIES
36  mkl_core
37  PATHS
38  $ENV{MKLLIB}
39  /opt/intel/mkl/*/lib/32
40  /opt/intel/Compiler/*/*/mkl/lib/32
41  ${LIB_INSTALL_DIR}
42)
43
44find_library(MKL_GUIDE
45  guide
46  PATHS
47  $ENV{MKLLIB}
48  /opt/intel/mkl/*/lib/32
49  /opt/intel/Compiler/*/*/mkl/lib/32
50  /opt/intel/Compiler/*/*/lib/intel32
51  ${LIB_INSTALL_DIR}
52)
53
54if(MKL_LIBRARIES AND MKL_GUIDE)
55  set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel mkl_sequential ${MKL_GUIDE} pthread)
56endif()
57
58endif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
59
60endif(CMAKE_MINOR_VERSION GREATER 4)
61
62include(FindPackageHandleStandardArgs)
63find_package_handle_standard_args(MKL DEFAULT_MSG MKL_LIBRARIES)
64
65mark_as_advanced(MKL_LIBRARIES)
66