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

Christian K ckkart@hoc....
Fri Apr 13 23:57:32 CDT 2007


Christian K wrote:
> Hi,
> I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu
> package atlas3-sse2-dev which contains:

[...]

> 
> I tried both with and without a site.cfg:
> 
> 
> [DEFAULT]
> library_dirs = /usr/lib/sse2
> include_dirs = /usr/include
> 
> [blas_opt]
> libraries = f77blas, cblas, atlas
> 
> [lapack_opt]
> libraries = lapack, f77blas, cblas, atlas
> 
> and tested wether numpy is actually using the optimized libs as demonstrated in
> a posting by Simon Burton
> (http://article.gmane.org/gmane.comp.python.numeric.general/5849).
> 
> It apparently is linked to
> /usr/lib/sse2/libatlas.so.3.0
> /usr/lib/sse2/libcblas.so.3.0
> /usr/lib/sse2/libf77blas.so.3.0
> /usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so

I tried with a modified site.cfg

[DEFAULT]
library_dirs = /usr/lib/atlas/sse2:/usr/lib
include_dirs = /usr/include
[blas_opt]
libraries = f77blas, cblas, atlas
[lapack_opt]
libraries = lapack, f77blas, cblas, atlas

and now numpy seems to use both its own lapack_lite and the optimized one:

/usr/lib/atlas/sse2/liblapack.so.3.0
/usr/lib/atlas/sse2/liblapack.so.3.0
/usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so
/usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so

Is that ok?

Christian



More information about the Numpy-discussion mailing list