[Trilinos-Users] Difficulty linking blas

Nico Schlömer nico.schloemer at ua.ac.be
Thu Jul 2 13:48:29 MDT 2009


Oh, but that doesn't have to be a problem. I suppose you have BLAS and LAPACK 
installed, possibly as .so files in /usr/something/?
An

--with-blas="-lblas"

should actually be enough if the file is called "libblas.so". Note that 
/usr/something has to be in your LD_LIBRARY_PATH in that case.

If you don't have it installed, than you just compile it yourself, I guess 
that's what many people here do anyway to get the best performance.

Cheers,
Nico



On Thursday 02 July 2009 21:23:15 Askey Scott A Capt AFIT/ENY wrote:
> Nico
>
> My problem is that the I have no .a files for blas or lapack .
>
> Cheers
>
> Scott
>
> -----Original Message-----
> From: Nico Schlömer [mailto:nico.schloemer at ua.ac.be]
> Sent: Thursday, July 02, 2009 3:20 PM
> To: trilinos-users at software.sandia.gov; Askey Scott A Capt AFIT/ENY
> Subject: Re: [Trilinos-Users] Difficulty linking blas
>
> Hi Scott,
>
> > LDFLAG="-L/user/lib64" and  --with-blas="-L/user/lib64 -lblas" did not
>
> I guess the correct syntac would be
>
> --with-ldflags="-L/usr/lib64"
> --with-blas="-lblas"
>
> if your BLAS lib is called libblas.a. It might also be worthwhile to try
>
> --with-blas="/path/to/blas/libblas.a"
>
> directly.
>
> Cheers,
> Nico
>
> On Thursday 02 July 2009 21:09:30 Askey Scott A Capt AFIT/ENY wrote:
> > I cannot get Trilinos to link to the BLAS and  LAPACK fro the standard
> > repo for Centos 5.3 during configuration.   Must I build a libblas.a
> > Isn't /usr/lib54 in the standard path?
> >
> > LDFLAG="-L/user/lib64" and  --with-blas="-L/user/lib64 -lblas" did not
> > fix the configire script.
> >
> > V/R
> >
> > Scott
> >
> >
> >
> >
> > [saskey at enyphd02 lib64]$ ls -l *pack*
> > lrwxrwxrwx 1 root root      18 Jul  2 13:04 liblapack.so.3 ->
> > liblapack.so.3.0.3
> > lrwxrwxrwx 1 root root      18 Jul  2 13:04 liblapack.so.3.0 ->
> > liblapack.so.3.0.3
> > -rwxr-xr-x 1 root root 4214056 Jan  6  2007 liblapack.so.3.0.3
> > [saskey at enyphd02 lib64]$ ls -l *pack*
> > lrwxrwxrwx 1 root root      18 Jul  2 13:04 liblapack.so.3 ->
> > liblapack.so.3.0.3
> > lrwxrwxrwx 1 root root      18 Jul  2 13:04 liblapack.so.3.0 ->
> > liblapack.so.3.0.3
> > -rwxr-xr-x 1 root root 4214056 Jan  6  2007 liblapack.so.3.0.3
> > [saskey at en[saskey at enyphd02 lib64]$ ls -l *blas*
> > lrwxrwxrwx 1 root root     16 Jul  2 13:04 libblas.so.3 ->
> > libblas.so.3.0.3
> > lrwxrwxrwx 1 root root     16 Jul  2 13:04 libblas.so.3.0 ->
> > libblas.so.3.0.3
> > -rwxr-xr-x 1 root root 345936 Jan  6  2007 libblas.so.3.0.3yphd02
> > lib64]$





More information about the Trilinos-Users mailing list