[GRASSLIST:4762] Re: how can I compile grass-5.7.0 with blas(atlas)/lapack support?

glynn at gclements.plus.com glynn at gclements.plus.com
Tue Nov 9 10:59:17 EST 2004


acrux wrote:

> I'm tring to compile grass-5.7.0 with blas (atlas-3.7.8) and lapack
> (lapack-3.0) support.
> 
> from atlas-3.7.8 compilation I have:
> drwxr-xr-x      root/root       usr/
> drwxr-xr-x      root/root       usr/include/
> -rw-r--r--      root/root       usr/include/cblas.h
> drwxr-xr-x      root/root       usr/lib/
> -rw-r--r--      root/root       usr/lib/libatlas.a
> -rw-r--r--      root/root       usr/lib/libcblas.a
> -rw-r--r--      root/root       usr/lib/libf77blas.a
> -rw-r--r--      root/root       usr/lib/libtstatlas.a
> 
> and from lapack-3.0 compilation:
> drwxr-xr-x      root/root       usr/
> drwxr-xr-x      root/root       usr/lib/
> -rw-r--r--      root/root       usr/lib/lapack_linux.a
> lrwxrwxrwx      root/root       usr/lib/liblapack.a -> lapack_linux.a
> 
> those libraries are obviously perfect and they are succesfully utilized
> from programs like octave-2.1.59 and R-2.0.0 .
> 
> This is my grass-5.7.0 configure :
> ./configure --prefix=$PKG/opt --exec-prefix=$PKG/opt \
>     --enable-64bit-vis=no --with-cxx --with-fftw --with-proj \
>     --with-motif --with-blas --with-lapack \
>     --with-mysql=no --with-odbc=no --disable-nls \
>     --with-opendwg --with-opendwg-includes=$ODA --with-opendwg-libs=$ODA
> 
> I succesfully compile grass but there is no support for blas/lapack.

First, the BLAS library has to be called libblas.* (i.e. it can be
linked using -lblas).

Second, I'm not sure whether anything can actually use BLAS/LAPACK at
present. If those libraries are enabled, some additional functions are
available in the gmath library. However, I'm not sure whether anything
actually uses those functions.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list