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

Sturla Molden sturla@molden...
Tue Jan 27 13:26:02 CST 2009


> On Mon, Jan 26, 2009 at 6:29 PM, Robert Kern <robert.kern@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