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

Ed Schofield schofield at ftw.at
Wed Mar 29 11:01:07 EST 2006


Robert Cimrman wrote:
> Ed Schofield wrote:
>> Okay, I've now figured out that the umfpack hooks need NumPy distutils
>>
>>> = r2286.  But the get_info() call in umfpack/setup.py still isn't
>>
>> acknowledging that umfpack exists.  It should find it from the scipy
>> source tree, right?  Do you have any hints?
>
> Well, the umfpack sources are not in the scipy source tree - there is
> just my wrapper/module code there. I did it this way, because even if
> the license of the version 4.4 (which is known to work with the
> module) is (imho) acceptable for scipy, the curent version (4.6) is
> under LGPL...

Okay, that sounds reasonable.

> You should proceed as follows:
> 1. get the version 4.4 at
> http://www.cise.ufl.edu/research/sparse/umfpack/v4.4/
> 2. try to install it according to instructions in
> UMFPACK/Doc/QuickStart.pdf (basically, just choose your platform at
> the end of UMFPACK/Make/Make.include and also edit Make.<your
> platform> where you can specify which BLAS to use etc.; then 'make
> install')
> 3. put the following into your numpy's site.cfg, so that it is
> detected by get_info():
>
> [umfpack]
> library_dirs = <UMFPACKv4.4_root>/UMFPACK/Lib:<UMFPACKv4.4_root>/AMD/Lib
> include_dirs = <UMFPACKv4.4_root>/UMFPACK/Include
> umfpack_libs = umfpack, amd

Okay, I'll do this.  By the way, the libumfpack4 / libumfpack4-dev
Debian/Ubuntu packages don't work out-of-the-box (or even with a
site.cfg file).  SciPy installs fine but dies on import of linsolve with
a BLAS error:

import linsolve.umfpack -> failed:
/usr/lib/python2.4/site-packages/scipy/linsolve/umfpack/__umfpack.so:
undefined symbol: dtrsv_

I'd like to get this working eventually, but I'm stuck for ideas right
now.  I'll install UMFPACK manually as you suggest and get back to you.

> BTW, without umfpack, does the rest of scipy.sparse work for you? :)
Yes, it seems fine.  Well done :)

-- Ed




More information about the SciPy-Dev mailing list