On 2010-01-21 11:03+0900 Ryo IGARASHI wrote:

Dear developers,

Currently, FindLAPACK.cmake and FindBLAS.cmake *requires* Fortran compiler.
However, I can easily think of a situation when no Fortran compiler
but LAPACK/BLAS
available. Let's say:
* Use ATLAS on VC9 (Windows)
* Buy Intel C++ compiler but not Fortran compiler (each of them have
MKL) (Windows/Linux)

Is there any way to properly detect BLAS/LAPACK with C/C++ only project?

Those with knowledge of the Fortran versions of lapack/blas libraries may
not have similar good knowledge of the C/C++ versions of those libraries and
vice versa.  Also, the fortran version find needs may interfere with the C/C++
version find needs and vice versa.

Thus, I think it makes a lot of sense to have separate development of
FindCLAPACK.cmake and FindCBLAS.cmake (note the name change) for the purpose
of dealing with the C/C++ versions of lapack/blas.

Years ago when I started FindLAPACK.cmake and FindBLAS.cmake, I implemented
something really simple that worked for just my needs.  After that start,
Alin M Elena (who has a lot more Fortran Lapack/blas expertise than I do)
took over and vastly generalized my work.

CMake is a free software project, and Find modules are completely
straightforward to write if you have the necessary background knowledge
about the libraries involved.  Thus, I suggest because of your need to find
C/C++ versions of lapack/blas, that you should write a small
FindCLAPACK.cmake and FindCBLAS.cmake that satisfies your needs, and see
where it leads from there.

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 libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to