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

Nils Wagner nwagner at iam.uni-stuttgart.de
Mon Apr 10 06:28:30 CDT 2006


Pearu Peterson wrote:
> On Mon, 10 Apr 2006, Robert Cimrman wrote:
>
>   
>>> 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 the information. I have splitted umfpack_info class into 
> umfpack_info and amd_info classes and the location of umfpack and amd 
> libraries must be specified separately in site.cfg file. In this way
> the system_info tools can handle various configurations, including 
> default UMFPACK installation as well as various linux distribution 
> provided installations (amd lives in /usr/lib and umfpack lives in 
> /usr/lib/umfpack, for instance).
>
> So, use the following contents in site.cfg:
>
> [amd]
> library_dirs = /home/share/software/packages/AMD/Lib
> include_dirs = /home/share/software/packages/AMD/Include
> amd_libs = amd
>
> [umfpack]
> library_dirs = /home/share/software/packages/UMFPACK/Lib
> include_dirs = /home/share/software/packages/UMFPACK/Include
> umfpack_libs = umfpack
>
> HTH,
> Pearu
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
 I have installed UMFPACK 4.6.

 >>> from scipy import *
import linsolve.umfpack -> failed: 
/usr/lib64/python2.4/site-packages/scipy/linsolve/umfpack/__umfpack.so: 
undefined symbol: e_wsfe

Is the wrapper restricted to version 4.4 ?

 >>> numpy.__version__
'0.9.7.2338'
 >>> scipy.__version__
'0.4.9.1848'

Nils




More information about the Scipy-dev mailing list