Discussion:
[Numpy-discussion] Building numpy with ATLAS
Shitikanth Kashyap
2016-07-18 16:14:00 UTC
Permalink
Hey Everyone,

I am trying to build numpy-1.11.1 with ATLAS libraries. The build completes successfully, and
I am able to use numpy, but there seems to be some problem with my config because
numpy only ever uses one core, even when multiplying 5000x5000 matrices with numpy.dot.

My site.cfg is:

[default]
library_dirs = /u3/s4kashya/.local/atlas3.11/lib:/u3/s4kashya/.local/lib:/usr/local/lib:/usr/lib
include_dirs = /u3/s4kashya/.local/atlas3.11/include:/u3/s4kashya/.local/include:/usr/local/include:/usr/include

[atlas]
libraries = ptlapack, ptf77blas, ptcblas, atlas
library_dirs = /u3/s4kashya/.local/atlas3.11/lib
include_dirs = /u3/s4kashya/.local/atlas3.11/include


Output from numpy.__config__.show():

atlas_3_10_blas_threads_info:
libraries = ['tatlas', 'ptlapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/u3/s4kashya/.local/atlas3.11/lib']
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
language = c
include_dirs = ['/u3/s4kashya/.local/atlas3.11/include']
lapack_opt_info:
libraries = ['tatlas', 'tatlas', 'tatlas', 'ptlapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/u3/s4kashya/.local/atlas3.11/lib']
define_macros = [('NO_ATLAS_INFO', -1)]
language = f77
include_dirs = ['/u3/s4kashya/.local/atlas3.11/include']
blas_opt_info:
libraries = ['tatlas', 'ptlapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/u3/s4kashya/.local/atlas3.11/lib']
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
language = c
include_dirs = ['/u3/s4kashya/.local/atlas3.11/include']
openblas_info:
NOT AVAILABLE
openblas_lapack_info:
NOT AVAILABLE
atlas_3_10_threads_info:
libraries = ['tatlas', 'tatlas', 'tatlas', 'ptlapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/u3/s4kashya/.local/atlas3.11/lib']
define_macros = [('NO_ATLAS_INFO', -1)]
language = f77
include_dirs = ['/u3/s4kashya/.local/atlas3.11/include']
lapack_mkl_info:
NOT AVAILABLE
blas_mkl_info:
NOT AVAILABLE
mkl_info:
NOT AVAILABLE

Any ideas what could be going wrong?

Thanks,
Shitikanth
Shitikanth Kashyap
2016-07-19 04:35:36 UTC
Permalink
As it turns out, I just had to run "python setup.py build --force" after changing my site.cfg file in order to recompile numpy/core/multiarray.so.
Loading...