BASIS  r3148
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

/// Copyright 2007-2009 Kitware, Inc.
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions
/// are met:
///
/// * Redistributions of source code must retain the above copyright
///  notice, this list of conditions and the following disclaimer.
///
/// * Redistributions in binary form must reproduce the above copyright
///  notice, this list of conditions and the following disclaimer in the
///  documentation and/or other materials provided with the distribution.
///
/// * Neither the names of Kitware, Inc., the Insight Software Consortium,
///  nor the names of their contributors may be used to endorse or promote
///  products derived from this software without specific prior written
///  permission.
///
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
/// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
/// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
/// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
/// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
/// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
/// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
/// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
/// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
/// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/// 

Definition in file FindBLAS.cmake.


Function Documentation

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

Variable Documentation

Definition at line 323 of file FindBLAS.cmake.

Definition at line 324 of file FindBLAS.cmake.

Definition at line 318 of file FindBLAS.cmake.

Definition at line 89 of file FindBLAS.cmake.

cmake BLA_VENDOR

Definition at line 180 of file FindBLAS.cmake.

cmake BLAS95_FOUND

Definition at line 576 of file FindBLAS.cmake.

cmake BLAS_FOUND

Definition at line 596 of file FindBLAS.cmake.

Definition at line 597 of file FindBLAS.cmake.

Definition at line 258 of file FindBLAS.cmake.

cmake LM

Definition at line 442 of file FindBLAS.cmake.