help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding BLAS and LAPACK


From: Ben Abbott
Subject: Re: Finding BLAS and LAPACK
Date: Tue, 23 Feb 2010 21:24:03 -0500

On Feb 23, 2010, at 9:17 PM, Ben Abbott wrote:

> 
> On Feb 23, 2010, at 8:49 PM, Mag Gam wrote:
>> 
>> On Tue, Feb 23, 2010 at 5:37 PM, John W. Eaton <address@hidden> wrote:
>>> On 23-Feb-2010, Mag Gam wrote:
>>> 
>>> | Unfortunately, this does not pick up BLAS
>>> |
>>> | I am using ./configure --prefix=/apps LDFLAGS="-L/apps/libs"
>>> |
>>> | Any other suggestion?
>>> |
>>> |
>>> | configure:11325: checking for sgemm_ in -lblas
>>> | configure:11358: gcc -o conftest -g -O2 -I/apps/hdf5-1.8.3/include
>>> | -L/apps/hdf5-1.8.3/lib conftest.c -lblas  -lhdf5 -lz -lm
>>> | -L/apps/hdf5-1.8.3/lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6
>>> | -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64
>>> | -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64
>>> | -L/usr/lib/../lib64 -lhdf5 -lz -lfrtbegin -lg2c -lm >&5
>>> | /usr/bin/ld: cannot find -lblas
>>> | collect2: ld returned 1 exit status
>>> | configure:11358: $? = 1
>>> |
>>> | I see this in my config.log
>>> 
>>> You'll need to give us more details, like which BLAS you are using and
>>> how you compiled it.
>>> 
>>> What do you see if you run
>>> 
>>> nm /apps/libs/your-blas-lib | grep -i sgemm
>>> 
>>> ?
>>> 
>>> jwe
>>> cg
>>> 
>> 
>> These are some libraries of interest
>> /apps/libslibgslcblas.so
>> /apps/libslibgslcblas.a
>> /apps/libslibcblas.a
>> /apps/libslibf77blas.a
>> /apps/libslibblas.a
>> /apps/libslibgslcblas.so.0.0.0
>> /apps/libslibcblas.so
>> 
>> # nm /apps/libslibblas.a | grep -i sgemm
>> sgemm.o:
>> 0000000000000000 T sgemm_
> 
> Those names don't look standard to me. I think you can use them if you append 
> the following to your configure command.
> 
> ./configure --prefix=/apps LDFLAGS="-L/apps/libs" LIBS="-lslibgslcblas 
> -lslibcblas -lslibf77blas -lslibblas"
> 
> Ben
> 
> p.s. please reply at the bottom so that those arriving late can follow along.

Thinking a bit more, I think the correct way is ...

./configure --prefix=/apps LDFLAGS="-L/apps/libs" --with-blas="-lslibgslcblas 
-lslibcblas -lslibf77blas -lslibblas"

Ben





reply via email to

[Prev in Thread] Current Thread [Next in Thread]