Functions | Variables
FindBLAS.cmake File Reference

Find BLAS library. More...

#include "CheckFortranFunctionExists.cmake"
+ Include dependency graph for FindBLAS.cmake:

Go to the source code of this file.

Functions

macro Check_Fortran_Libraries (in LIBRARIES, in _prefix, in _name, in _flags, in _list, in _threads)
 

Variables

cmake _ACML_COMPILER32
 
cmake _ACML_COMPILER64
 
cmake _ACML_PATH_SUFFIX
 
cmake _CHECK_FORTRAN
 
cmake BLA_VENDOR
 
cmake BLAS95_FOUND
 
cmake BLAS_FOUND
 
cmake BLAS_LIBRARIES
 
cmake BLAS_LINKER_FLAGS
 
cmake LM
 

Detailed Description

Find 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).

Modified by Andreas Schuh to enable the use at SBIA, where an ATLAS C library is installed which contains the symbols without trailing _ character, i.e., instead of checking the existence of the cblas_dgemm_ function, the existence of the cblas_dgemm function has to be checked. Moreover, added code to mark variable as advanced and only show them to the user if no required library was found. If the found library is cblas, the corresponding header file cblas.h is searched as well. Therefore, added the BLAS_INCLUDE_DIR variable which is only defined if required.

This module sets the following variables: BLAS_FOUND - set to true if a library implementing the BLAS interface is found BLAS_LINKER_FLAGS - uncached list of required linker flags (excluding -l and -L). BLAS_LIBRARIES - uncached list of libraries (using full path name) to link against to use BLAS BLAS_INCLUDE_DIR - uncached list of include directories for C libraries BLAS95_LIBRARIES - uncached list of libraries (using full path name) to link against to use BLAS95 interface BLAS95_FOUND - set to true if a library implementing the BLAS f95 interface is found BLA_STATIC if set on this determines what kind of linkage we do (static) BLA_VENDOR if set checks only the specified vendor, if not set checks all the possibilities BLA_F95 if set on tries to find the f95 interfaces for BLAS/LAPACK

List of vendors (BLA_VENDOR) valid in this module ATLAS, PhiPACK,CXML,DXML,SunPerf,SCSL,SGIMATH,IBMESSL,Intel10_32 (intel mkl v10 32 bit),Intel10_64lp (intel mkl v10 64 bit,lp thread model, lp64 model), Intel( older versions of mkl 32 and 64 bit), ACML,ACML_MP,Apple, NAS, Generic C/CXX should be enabled to use Intel mkl

Definition in file FindBLAS.cmake.

Function Documentation

§ Check_Fortran_Libraries()

macro Check_Fortran_Libraries ( in  LIBRARIES,
in  _prefix,
in  _name,
in  _flags,
in  _list,
in  _threads 
)
Returns
Nothing.

Variable Documentation

§ _ACML_COMPILER32

cmake _ACML_COMPILER32

Definition at line 304 of file FindBLAS.cmake.

§ _ACML_COMPILER64

cmake _ACML_COMPILER64

Definition at line 305 of file FindBLAS.cmake.

§ _ACML_PATH_SUFFIX

cmake _ACML_PATH_SUFFIX

Definition at line 299 of file FindBLAS.cmake.

§ _CHECK_FORTRAN

cmake _CHECK_FORTRAN

Definition at line 45 of file FindBLAS.cmake.

§ BLA_VENDOR

cmake BLA_VENDOR

Definition at line 161 of file FindBLAS.cmake.

§ BLAS95_FOUND

cmake BLAS95_FOUND

Definition at line 557 of file FindBLAS.cmake.

§ BLAS_FOUND

cmake BLAS_FOUND

Definition at line 577 of file FindBLAS.cmake.

§ BLAS_LIBRARIES

cmake BLAS_LIBRARIES

Definition at line 578 of file FindBLAS.cmake.

§ BLAS_LINKER_FLAGS

cmake BLAS_LINKER_FLAGS

Definition at line 239 of file FindBLAS.cmake.

§ LM

cmake LM

Definition at line 423 of file FindBLAS.cmake.