[Trilinos-Users] How to link libblas.so

Martin Vymazal martin.vymazal at vki.ac.be
Tue Jul 26 13:13:53 MDT 2011


Dear Trilinos users & developers,

  I have trouble configuring trilinos (10.6.1) to detect blas. The  
folder /usr/lib64 contains:

/usr/lib64//libblas.so.3 -> libblas.so.3.2.1
/usr/lib64//libblas.so.3.2 -> libblas.so.3.2.1
/usr/lib64//libblas.so.3.2.1

and I run cmake with the following options:
   ...
   -D TPL_ENABLE_BLAS:BOOL=ON \
   -D BLAS_LIBRARY_DIRS:PATH=/usr/lib64 \
   -D BLAS_LIBRARY_NAMES:STRING="blas" \
   ...

And I always end up with the following:

Getting information for all enabled TPLs ...

-- Processing enabled TPL: MPI
-- Processing enabled TPL: BLAS
--   BLAS_LIBRARY_DIRS='/usr/lib64'
--   Searching for library 'blas' ...
-- Warning: Could not find a library in the set "blas" for the TPL  
BLAS!  Please manually set BLAS_LIBRARY_DIRS and/or BLAS_LIBRARY_NAMES  
or just TPL_BLAS_LIBRARIES to point to the BLAS libraries!
CMake Error at cmake/package_arch/TPLDeclareLibraries.cmake:196 (MESSAGE):
   Error, could not find the BLAS Library! Please manually set
   BLAS_LIBRARY_DIRS and/or BLAS_LIBRARY_NAMES or just TPL_BLAS_LIBRARIES to
   point to the BLAS libraries!

I don't have this problem when configuring with static blas library  
(libblas.a) in a different machine.

Could you please tell me how to configure Trilinos properly? Thank you  
very much.

Best regards,

    Martin Vymazal


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the Trilinos-Users mailing list