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

John R Cary cary at colorado.edu
Wed Jul 7 09:51:10 MDT 2010


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")
SET(Trilinos_TPL_LIST "LAPACK;BLAS")

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

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.

Thanks....John



More information about the Trilinos-Users mailing list