diff options
author | Jakub Benda <jacob.benda@gmail.com> | 2018-11-18 15:05:28 (GMT) |
---|---|---|
committer | Jakub Benda <jacob.benda@gmail.com> | 2018-11-18 16:59:03 (GMT) |
commit | fc149a72f7e9128c0ad54014d745500fd31eea36 (patch) | |
tree | ac1e83a89706dd37b6c4b8d1b2d6af4da85223ba /Modules/FindMatlab.cmake | |
parent | f0d52f55f155ac3f3e2bafa072a4e0d7f1431d76 (diff) | |
download | CMake-fc149a72f7e9128c0ad54014d745500fd31eea36.zip CMake-fc149a72f7e9128c0ad54014d745500fd31eea36.tar.gz CMake-fc149a72f7e9128c0ad54014d745500fd31eea36.tar.bz2 |
FindBLAS: Support combination of gfortran and Intel MKL
The module FindBLAS now correctly chooses MKL BLAS libraries to search,
based on the compiler ID. The MKL libraries needed for BLAS functionality
are the following:
libmkl_{gf|intel}_{lp64|ilp64}.{a|so}
libmkl_{gnu|intel}_thread.{a|so} (or libmkl_sequential.{a|so})
libmkl_core.{a|so}
libm
libdl
lib{gomp|iomp5}.{a|so} (only with libmkl_*_thread.*)
To achieve the goal, the following internal variables are defined and used:
BLAS_mkl_INTFACE = "gf" or "intel" (based on compiler ID)
BLAS_mkl_THREADING = "gnu" or "intel" (based on compiler ID)
BLAS_mkl_OMP = "gomp" or "iomp5" (based on compiler ID)
BLAS_mkl_LM = "-lm" (not set on Windows)
BLAS_mkl_DL = "-ldl" (not set on Windows)
The default values for the first three of them are "intel" and "iomp5",
unless a Fortran compiler is loaded with CMAKE_Fortran_COMPILER_ID
equal to "GNU"; in such case the "gf", "gnu" and "gomp" values are used.
In non-Windows systems, the thread library as well as libm and libdl are
now added to the linker line to allow static linking of libgomp.
Diffstat (limited to 'Modules/FindMatlab.cmake')
0 files changed, 0 insertions, 0 deletions