Find Basic Linear Algebra Subprograms (BLAS) library
This module finds an installed Fortran library that implements the BLAS linear-algebra interface (see http://www.netlib.org/blas/). The list of libraries searched for is taken from the autoconf
macro file, acx_blas.m4
(distributed at http://ac-archive.sourceforge.net/ac-archive/acx_blas.html).
The following variables may be set to influence this module’s behavior:
BLA_STATIC
ON
use static linkageBLA_VENDOR
If set, checks only the specified vendor, if not set checks all the possibilities. List of vendors valid in this module:
BLA_F95
ON
tries to find the BLAS95 interfacesBLA_PREFER_PKGCONFIG
pkg-config
will be used to search for a BLAS library first and if one is found that is preferredThis module defines the following variables:
BLAS_FOUND
BLAS_LINKER_FLAGS
-l
and -L
).BLAS_LIBRARIES
BLAS95_LIBRARIES
BLAS95_FOUND
Note
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(BLAS)
Set MKLROOT
environment variable to a directory that contains an MKL installation.
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/module/FindBLAS.html