[SciPy-dev] scipy.sparse + umfpack + system_info

Robert Cimrman cimrman3 at ntc.zcu.cz
Mon Apr 10 04:52:23 CDT 2006


Pearu Peterson wrote:
> 
> On Thu, 6 Apr 2006, Robert Cimrman wrote:
> 
> 
>>so that the tests could be run via scipy.test(). I will also check the
>>useUmfpack problem. However system_info now fails to find my umfpack
>>installation (revision 2308 worked for me), details are below:
>>
>> umfpack_info:
>>/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
>>UserWarning: Library error: libs=['umfpack', 'amd'] found_libs=[]
>>  warnings.warn("Library error: libs=%s found_libs=%s" % \
>>/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
>>UserWarning: Library error: libs=['umfpack', 'amd']
>>found_libs=['/home/share/software/packages/UMFPACK/UMFPACK/Lib/libumfpack.a']
>>  warnings.warn("Library error: libs=%s found_libs=%s" % \
>>/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
>>UserWarning: Library error: libs=['umfpack', 'amd']
>>found_libs=['/home/share/software/packages/UMFPACK/AMD/Lib/libamd.a']
>>  warnings.warn("Library error: libs=%s found_libs=%s" % \
>>/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:392:
>>UserWarning:
>>    UMFPACK sparse solver
>>(http://www.cise.ufl.edu/research/sparse/umfpack/)
>>    not found. Directories to search for the libraries can be specified
>>in the
>>    numpy/distutils/site.cfg file (section [umfpack]) or by setting
>>    the UMFPACK environment variable.
>>  warnings.warn(self.notfounderror.__doc__)
>>  NOT AVAILABLE
>>
>>the problem is, that len(found_libs) == len(libs) does not hold in my
>>case (it is in system_info._check_libs()). Pearu, could you fix this,
>>please? (btw. this is exactly the reason the original (rev. 2308)
>>umfpack_info looked so clumsy - I was checking one lib at a time.)
> 
> 
> Could you send my the details of your umfpack/amd installations and
> how do you specify these libraries for numpy.distutils? (site.cfg, env 
> variables ets.)

The UMFPACK sources are in /home/share/software/packages/UMFPACK 
directory (<umfpack_root>).

The solver/wrapper needs two libraries: libumfpack.a from 
<umfpack_root>/UMFPACK/Lib, and libamd.a from <umfpack_root>/AMD/Lib.

This is my site.cfg:
---
[atlas]
library_dirs = /usr/lib
atlas_libs = lapack, blas, cblas, atlas

[umfpack]
library_dirs = 
/home/share/software/packages/UMFPACK/UMFPACK/Lib:/home/share/software/packages/UMFPACK/AMD/Lib
include_dirs = /home/share/software/packages/UMFPACK/UMFPACK/Include
umfpack_libs = umfpack, amd
---

I assume that moving the both libraries into one directory would solve 
the problem, but this is the way the UMFPACK installation does by default.

Thanks for your help,
r.




More information about the Scipy-dev mailing list