[Trilinos-Users] How to get lapack/blas library consistency?

Buermann, Lee R LRBUERMANN at csbsju.edu
Wed Jul 7 10:22:49 MDT 2010

If what your building is using CMake, you should be able to write a Find Script for LAPACK. Trilinos has one in "yourTrilinosSource/cmake/TPLs/FindTPLLAPACK.cmake" I would think that if you use the same script as Trilinos, you would find the same libraries as Trilinos.


From: Kurtis Nusbaum [mailto:klnusbaum at gmail.com]
Sent: Wednesday, July 07, 2010 11:07 AM
To: John R Cary; Buermann, Lee R
Cc: Trilinos Users
Subject: Re: [Trilinos-Users] How to get lapack/blas library consistency?

Lee Buermann has actually been doing some work with the way Trilinos detects LAPACK. He might be able to speak to this issue. Lee, any thoughts?

On Wed, Jul 7, 2010 at 9:51 AM, John R Cary <cary at colorado.edu<mailto:cary at colorado.edu>> wrote:

When we build something with Trilinos, we want (I assume)
to ensure that we use the same lapack libs that Trilinos
uses.  Is there a way to detect this?

I see:

iter.cary$ grep -i lapack TrilinosConfig.cmake
SET(Trilinos_TPL_LIBRARIES "/usr/lib64/liblapack.so;/usr/lib64/libblas.so")

which makes me this that those were used, but then I

iter.cary$ ldd lib/libifpack.so | egrep '(lapack|blas|atlas)'
       liblapack.so.3 => /usr/lib64/atlas/liblapack.so.3 (0x00007f61d5999000)
       libblas.so.3 => /usr/lib64/libblas.so.3 (0x00007f61d5743000)
       libf77blas.so.3 => /usr/lib64/atlas/libf77blas.so.3 (0x00007f61d471f000)
       libcblas.so.3 => /usr/lib64/atlas/libcblas.so.3 (0x00007f61d44fe000)
       libatlas.so.3 => /usr/lib64/atlas/libatlas.so.3 (0x00007f61d3c44000)

which seems to indicate that Trilinos chose not to use
the specified libs, but chose to use atlas and the
system blas instead.

I need a strategy that works for static builds, so cannot
use ldd to detect.


Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100707/23cedffc/attachment-0001.html 

More information about the Trilinos-Users mailing list