[Numpy-discussion] building numpy with atlas on ubuntu edgy

David Cournapeau david@ar.media.kyoto-u.ac...
Sun Apr 15 22:45:16 CDT 2007


Charles R Harris wrote:
>
>
> On 4/15/07, *David Cournapeau* <david@ar.media.kyoto-u.ac.jp 
> <mailto:david@ar.media.kyoto-u.ac.jp>> wrote:
>
>     Christian K wrote:
>     >
>     > Thanks, but that didn't help:
>     >
>     > atlas_info:
>     >   libraries lapack not found in /usr/lib/sse2
>     >   libraries f77blas,cblas,atlas not found in /usr/lib/atlas
>     >   libraries lapack_atlas not found in /usr/lib/atlas
>     >   libraries lapack not found in /usr/lib/sse2
>     >   libraries f77blas,cblas,atlas not found in /usr/lib
>     >   libraries lapack_atlas not found in /usr/lib
>     > numpy.distutils.system_info.atlas_info
>     >
>     /media/hda6/home/ck/prog/scipy/numpy/numpy/distutils/system_info.py:903:
>     > UserWarning:
>     >
>     *********************************************************************
>     >     Could not find lapack library within the ATLAS installation.
>     >
>     *********************************************************************
>     >
>     >   warnings.warn(message)
>     >   FOUND:
>     >     libraries = ['f77blas', 'cblas', 'atlas']
>     >     library_dirs = ['/usr/lib/sse2']
>     >     language = c
>     >     define_macros = [('ATLAS_WITHOUT_LAPACK', None)]
>     >
>     > lapack_info:
>     >   libraries lapack not found in /usr/lib/sse2
>     >   libraries lapack not found in /usr/lib
>     >   NOT AVAILABLE
>     >
>     >
>     > Christian
>     >
>     > _______________________________________________
>     > Numpy-discussion mailing list
>     > Numpy-discussion@scipy.org <mailto:Numpy-discussion@scipy.org>
>     > http://projects.scipy.org/mailman/listinfo/numpy-discussion
>     >
>     >
>     On Ubuntu and debian, you do NOT need any site.cfg to compile
>     numpy with
>     atlas support. Just install the package atlas3-base-dev, and you are
>     done. The reason is that when *compiling* a software which needs
>     atlas,
>     the linker will try to find libblas.so in /usr/lib, not in
>     /usr/lib/sse2. If you install atlas3-base-dev, the package will
>     install
>     those at the correct locations. I have updated the instructions for
>     Ubuntu (also works for debian) on the wiki a few days ago:
>
>     http://www.scipy.org/Installing_SciPy/Linux#head-c5a062b2ecf76f746d78cfcde1dae00ae26109fe
>
>     Note that if you have also optimized version installed (sse, sse2), it
>     will use those automatically when you launch numpy (you can check by
>     doing ldd on the file numpy/core/_dotblas.so inside your numpy
>     installation.
>
>
> Be aware that on recent 64 bit Intel processors running a 64 bit OS 
> the base Atlas package appears to be buggy. You might be better off 
> building your own version, on a fast machine it won't take long.
I do not use any 64 bits machines myself, so I didn't know about this. 
Compiling atlas may take a long time on fast machine if you don't have 
arch defaults, though (it takes several hours for my workstation which 
has two xeon @ 3.2 ghz).

My impression is that using 64 bits OS is still a bit rough, anyway.

David


More information about the Numpy-discussion mailing list