FindLAPACK¶
Find Linear Algebra PACKage (LAPACK) library
This module finds an installed Fortran library that implements the LAPACK linear-algebra interface (see http://www.netlib.org/lapack/).
The approach follows that taken for the autoconf macro file,
acx_lapack.m4 (distributed at
http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html).
Input Variables¶
The following variables may be set to influence this module's behavior:
BLA_STATICif
ONuse static linkageBLA_VENDORIf set, checks only the specified vendor, if not set checks all the possibilities. List of vendors valid in this module:
FlexiBLASOpenBLASFLAMEIntel10_32(intel mkl v10 32 bit, threaded code)Intel10_64lp(intel mkl v10+ 64 bit, threaded code, lp64 model)Intel10_64lp_seq(intel mkl v10+ 64 bit, sequential code, lp64 model)Intel10_64ilp(intel mkl v10+ 64 bit, threaded code, ilp64 model)Intel10_64ilp_seq(intel mkl v10+ 64 bit, sequential code, ilp64 model)Intel10_64_dyn(intel mkl v10+ 64 bit, single dynamic library)Intel(obsolete versions of mkl 32 and 64 bit)ACMLAppleNASArmArm_mpArm_ilp64Arm_ilp64_mpEMLEML_mtGeneric
New in version 3.6:
OpenBLASsupport.New in version 3.11:
FLAMEsupport.New in version 3.13: Added ILP64 MKL variants (
Intel10_64ilp,Intel10_64ilp_seq).New in version 3.17: Added single dynamic library MKL variant (
Intel10_64_dyn).New in version 3.18: Arm Performance Libraries support (
Arm,Arm_mp,Arm_ilp64,Arm_ilp64_mp).New in version 3.19:
FlexiBLASsupport.New in version 3.20: Elbrus Math Library support (
EML,EML_mt).BLA_F95if
ONtries to find the BLAS95/LAPACK95 interfacesBLA_PREFER_PKGCONFIGNew in version 3.20.
if set
pkg-configwill be used to search for a LAPACK library first and if one is found that is preferred
Imported targets¶
New in version 3.18.
This module defines the following IMPORTED target:
LAPACK::LAPACKThe libraries to use for LAPACK, if found.
Result Variables¶
This module defines the following variables:
LAPACK_FOUNDlibrary implementing the LAPACK interface is found
LAPACK_LINKER_FLAGSuncached list of required linker flags (excluding
-land-L).LAPACK_LIBRARIESuncached list of libraries (using full path name) to link against to use LAPACK
LAPACK95_LIBRARIESuncached list of libraries (using full path name) to link against to use LAPACK95
LAPACK95_FOUNDlibrary implementing the LAPACK95 interface is found
Note
C, CXX or Fortran must be enabled to detect a BLAS/LAPACK library. C or CXX must be enabled to use Intel Math Kernel Library (MKL).
For example, to use Intel MKL libraries and/or Intel compiler:
set(BLA_VENDOR Intel10_64lp)
find_package(LAPACK)