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

Christian K ckkart@hoc....
Sat Apr 14 09:14:19 CDT 2007


Robert Kern wrote:
> 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:
>>
>> /usr
>> /usr/lib
>> /usr/lib/sse2
>> /usr/lib/sse2/libatlas.a
>> /usr/lib/sse2/libcblas.a
>> /usr/lib/sse2/libf77blas.a
>> /usr/lib/sse2/liblapack_atlas.a
>> /usr/lib/atlas
>> /usr/lib/atlas/sse2
>> /usr/lib/atlas/sse2/libblas.a
>> /usr/lib/atlas/sse2/liblapack.a
>> /usr/share
>> /usr/share/doc
>> /usr/share/doc/atlas3-sse2-dev
>> /usr/share/doc/atlas3-sse2-dev/copyright
>> /usr/share/doc/atlas3-sse2-dev/changelog.Debian.gz
>> /usr/lib/sse2/libatlas.so
>> /usr/lib/sse2/libcblas.so
>> /usr/lib/sse2/libf77blas.so
>> /usr/lib/sse2/liblapack_atlas.so
>> /usr/lib/atlas/sse2/libblas.so
>> /usr/lib/atlas/sse2/liblapack.so
>>
>> 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
> 
>> Confusingly lapack_atlas resides in /usr/lib but even though setup.py looks for
>> it in that place it reports 'not found'.
>>
>> What should I try next?
> 
> Change this:
> 
> [lapack_opt]
> libraries = lapack, f77blas, cblas, atlas
> 
> to this:
> 
> [lapack_opt]
> libraries = lapack_atlas, f77blas, cblas, atlas
> 

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



More information about the Numpy-discussion mailing list