[Trilinos-Users] How to link libblas.so

Willenbring, James M jmwille at sandia.gov
Tue Jul 26 13:26:14 MDT 2011


Martin,

This is something I have seen before.  You need to either create a soft link from libblas.so pointing to libblas.so.3, or you can just specify the entire path and library as your blas: -DBLAS_LIBRARIES=/usr/lib64/libblas.so.3

Jim

-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Martin Vymazal
Sent: Tuesday, July 26, 2011 1:14 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] How to link libblas.so

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.



_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list