[SciPy-dev] Building newscipy against non-atlas blas/lapack libraries

Nils Wagner nwagner at mecha.uni-stuttgart.de
Sun Nov 6 13:13:34 EST 2005


On Sat, 5 Nov 2005 13:04:10 -0600 (CST)
  Pearu Peterson <pearu at scipy.org> wrote:
> 
> Hi,
> 
> When building newscipy against non-atlas blas/lapack 
>libraries it is 
> crusial that you build blas/lapack libraries properly. 
>See the relevant 
> sections in
> 
>   http://www.scipy.org/documentation/buildnewscipy.txt
>   http://www.scipy.org/documentation/buildatlas4scipy.txt
> 
> When using the GNU compiler, it is important that the 
>lapack library is 
> compiled with optimisaton flag
> 
>   -O2
> 
> instead of
> 
>   -fno-f2c -O3
> 
> that is default OPTS in INSTALL/make.inc.LINUX.
> 
> If you do not fix OPTS  variable in make.inc, scipy 
>tests will fail as has 
> been reported in the list. And if you use system lapack 
>libraries that 
> are compiled with  `-fno-f2c -O3`, the tests will also 
>fail.
> 
> So, please build lapack library with proper optimisation 
>flags when using 
> it in scipy.
> 
> Pearu
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev

Hi Pearu,

Which tests will exactly fail ?

I have used

    export BLAS_SRC=~/src/blas
    export LAPACK_SRC=~/src/lapack
    mkdir $BLAS_SRC
    cd $BLAS_SRC
    wget http://www.netlib.org/blas/blas.tgz
    tar xzf blas.tgz

    cd $LAPACK_SRC/..
    wget http://www.netlib.org/lapack/lapack.tgz
    tar xzf lapack.tgz

    export BLAS=None
    export LAPACK=None
    export ATLAS=None

I have already reported the bugs with respect to this
approach.

Nils
  




More information about the SciPy-Dev mailing list