[Numpy-discussion] How compile Numpy on Gentoo system (finding atlas-blas and atlas-lapack)

Nadav Horesh nadavh at visionsense.com
Thu Mar 16 02:57:04 CST 2006


On a P4 machine my site.cfg is:

[DEFAULT]
library_dirs = /usr/lib:/usr/local/lib
include_dirs = /usr/include:/usr/local/include
src_dirs = /usr/local/src:/opt/src
# search static libraries (.a) in preference to shared ones (.so)
search_static_first = 0

[fftw]
fftw_libs = fftw3, fftw3f
fftw_opt_libs = fftw3_threaded, fftw3f_threaded
# if the above aren't found, look for {s,d}fftw_libs and {s,d}fftw_opt_libs

[atlas]
library_dirs = /usr/lib:/usr/lib/blas/atlas
# for overriding the names of the atlas libraries
atlas_libs = lapack, f77blas, cblas, atlas

[x11]
library_dirs = /usr/X11R6/lib
include_dirs = /usr/X11R6/include

On a amd64 I prefer to use the acml library, which preformance is about the same as ATLAS, but contains full blas/lapack compability.

  Nadav.

-----Original Message-----
From:	numpy-discussion-admin at lists.sourceforge.net on behalf of Zdenek Hurák
Sent:	Thu 16-Mar-06 09:44
To:	numpy-discussion at lists.sourceforge.net
Cc:	
Subject:	[Numpy-discussion] How compile Numpy on Gentoo system (finding atlas-blas and atlas-lapack)
Hello,

is anybody here working with Numpy on Gentoo Linux system? I have troubles
with compiling it with ATLAS-BLAS and ATLAS-LAPACK. The trouble is perhaps
that Gentoo has a little bit different approach to storing optimized BLAS
and LAPACK on the system then other Linux distros. And apparently Numpy
cannot find it. Numpy documentation says that I should specify the path to
ATLAS in site.cfg in numpy/distutils, but I cannot find one.

Thanks for your help,
Zdenek Hurak 


------------------------------------------------------------------
hurak at note-zhurak ~ $ ls -l /usr/lib | grep atlas
-rw-r--r--   1 root root 5293184 led 27 15:57 libatlas.a
-rwxr-xr-x   1 root root     793 led 27 15:57 libatlas.la
lrwxrwxrwx   1 root root      17 led 27 15:57 libatlas.so ->
libatlas.so.0.0.0
lrwxrwxrwx   1 root root      17 led 27 15:57 libatlas.so.0 ->
libatlas.so.0.0.0
-rwxr-xr-x   1 root root 2883644 led 27 15:57 libatlas.so.0.0.0
lrwxrwxrwx   1 root root      21 led 27 15:57 libblas.so ->
blas/atlas/libblas.so
lrwxrwxrwx   1 root root      23 led 27 15:57 libblas.so.0 ->
blas/atlas/libblas.so.0
lrwxrwxrwx   1 root root      21 led 27 15:57 libcblas.a ->
blas/atlas/libcblas.a
lrwxrwxrwx   1 root root      22 led 27 15:57 libcblas.so ->
blas/atlas/libcblas.so
lrwxrwxrwx   1 root root      24 led 27 15:57 libcblas.so.0 ->
blas/atlas/libcblas.so.0
lrwxrwxrwx   1 root root      25 led 27 21:37 liblapack.so ->
lapack/atlas/liblapack.so
lrwxrwxrwx   1 root root      27 led 27 21:37 liblapack.so.0 ->
lapack/atlas/liblapack.so.0
------------------------------------------------------------------
hurak at note-zhurak ~/tmp/install/numpy-0.9.6/numpy/distutils $
cat ../../build/lib.linux-i686-2.4/numpy/__config__.py
# This file is generated by /home/hurak/tmp/install/numpy-0.9.6/setup.py
# It contains system_info results at the time of building this package.
__all__ = ["get_info","show"]

blas_info={'libraries': ['blas'], 'library_dirs': ['/usr/lib'], 'language':
'f77'}
lapack_info={'libraries': ['lapack', 'blas'], 'library_dirs': ['/usr/lib'],
'language': 'f77'}
atlas_threads_info={}
blas_opt_info={'libraries': ['blas'], 'library_dirs': ['/usr/lib'],
'define_macros': [('NO_ATLAS_INFO', 1)], 'language': 'f77'}
atlas_blas_threads_info={}
lapack_opt_info={'libraries': ['lapack', 'blas'], 'library_dirs':
['/usr/lib'], 'define_macros': [('NO_ATLAS_INFO', 1)], 'language': 'f77'}
atlas_info={}
lapack_mkl_info={}
blas_mkl_info={}
atlas_blas_info={}
mkl_info={}
[...]
------------------------------------------------------------------

hurak at note-zhurak ~/tmp/install/numpy-0.9.6 $ ls numpy/distutils/
ccompiler.py       exec_command.pyc   intelccompiler.py    system_info.py
ccompiler.pyc      extension.py       lib2def.py           system_info.pyc
command            extension.pyc      line_endings.py      tests
conv_template.py   fcompiler          log.py               unixccompiler.py
conv_template.pyc  from_template.py   log.pyc              unixccompiler.pyc
core.py            from_template.pyc  mingw32ccompiler.py  __version__.py
core.pyc           info.py            misc_util.py         __version__.pyc
cpuinfo.py         info.pyc           misc_util.pyc
cpuinfo.pyc        __init__.py        setup.py
exec_command.py    __init__.pyc       setup.pyc
------------------------------------------------------------------



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion







More information about the Numpy-discussion mailing list