[CMake] New CMake modules for a large variety of BLAS/LAPACK API implementations.

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Jan 26 02:41:25 EST 2007


The FreeEOS project has a number of users that use a variety of different
lapack-related libraries which are named in a variety of ways. Because the
FindBLAS.cmake and FindLAPACK.cmake modules provided by Jan Woetzel at
http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/ do not deal
with this library name issue I started again from scratch following the
approach used in the standard autoconf macros that can be found at
http://ac-archive.sourceforge.net/ac-archive/acx_blas.html and
http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html.  My new CMake
modules not only search in turn for the ATLAS, PhiPACK, Alpha CXML, Alpha
DXML, Sun Performance, SCSL, SGIMATH, IBM ESSL, and generic forms of the
libraries, but if those libraries exist, test if they link with the fortran
compiler that has been chosen.

For those of you with an interest in BLAS or LAPACK, please try the new
FindBLAS.cmake and FindBLAS.cmake modules (and the
CheckFortranFunctionExists.cmake module that defines a macro used by both of
them) which can be found at
http://freeeos.cvs.sourceforge.net/freeeos/freeeos/cmake/modules/.  The tail
end of the free_eos.cmake module from that same location shows how fortran
is set up and the new modules used.

I have tried to be careful in copying the functionality of the equivalent
autoconf macros for every form of the lapack-related libraries. However, I
only have access to the generic versions of those libraries on a Linux box
so that is the only test I have been able to perform.  Of course, the
FreeEOS users will eventually provide some additional testing for the forms
of the lapack-related libraries available to them, but I would like to
eventually donate these modules to CMake so I would appreciate any
testing/feedback/patches others here could give my new lapack-related
modules.

For example, one issue is whether I should include logic dealing with f2c.
The Woetzel form of the modules have quite a bit of logic concerning f2c,
but I don't know whether (a) f2c is truly supported by cmake, and (b)
whether very many are using f2c any more so I have decided not to do any f2c
logic in my version of the modules unless somebody requests it and can test
it for me.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list