[Numpy-discussion] How compile Numpy on Gentoo system (finding atlas-blas and atlas-lapack)
Zdeněk Hurák
hurak at control.felk.cvut.cz
Wed Mar 15 23:44:05 CST 2006
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
------------------------------------------------------------------
More information about the Numpy-discussion
mailing list