[Trilinos-Users] How to link libblas.so

Kurtis Nusbaum klnusbaum at gmail.com
Thu Jul 28 12:35:23 MDT 2011


Try deleting your CmakeCache.txt file. For some reason when you change where
your BLAS or LAPACK are, CMake doesn't pick it up for what ever reason.

On Thu, Jul 28, 2011 at 11:56 AM, Martin Vymazal
<martin.vymazal at vki.ac.be>wrote:

> Hello Jim,
>
>
>  Thank you for your reply. I compiled atlas with blas and lapack. My
> ~/local/atlas/lib contains:
>   libatlas.a
>   libblas.a -> libf77blas.a
>   libcblas.a
>   libf77blas.a
>   liblapack.a
>   libptcblas.a
>   libptf77blas.a
>   libsatlas.so
>   libtatlas.so
>
> The symbolic link libblas.a was created by me. I tried to set
>   -D BLAS_LIBRARIES=$HOME/local/lapack/lib/libf77blas.a
> and also
>   -D BLAS_LIBRARIES=$HOME/local/lapack/lib/libblas.a
>
> The error is still the same:
> -- Processing enabled TPL: BLAS
> --   Searching for library 'blas' ...
> --   Searching for library 'blas_win32' ...
> -- Warning: Could not find a library in the set "blas blas_win32" 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!
>
> Do you have an idea what am I doing wrong? Can trilinos be linked to
> 'atlas' blas?
>
>  Best regards,
>
>    Martin
>
>
> Quoting "Willenbring, James M" <jmwille at sandia.gov>:
>
> > 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
> >
> >
>
>
>
> ----------------------------------------------------------------
> 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
>
>


-- 
Peace, Love, and Source Code
-Kurtis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110728/95be0d46/attachment.html 


More information about the Trilinos-Users mailing list