[SciPy-user] scipy.sparse.linalg.cg not thread safe?

Sturla Molden sturla at molden.no
Tue Jan 27 14:26:02 EST 2009


> On Mon, Jan 26, 2009 at 6:29 PM, Robert Kern <robert.kern at gmail.com>
> wrote:


>> It's probably not threadsafe.
>>
>
> I don't know Fortran, so I can't say:
> http://projects.scipy.org/scipy/scipy/browser/trunk/scipy/sparse/linalg/isolve/iterative/CGREVCOM.f.src

Well I do, and that is not thread safe. The offending line is 110. I makes
this routine work like a finite state machine. All local variables are
declared static.


S.M.





More information about the SciPy-User mailing list