[SciPy-user] shared memory machines

Brian Granger ellisonbg.net at gmail.com
Fri Feb 13 12:05:51 EST 2009


Does this work without multiprocessing?

Brian

On Fri, Feb 13, 2009 at 7:00 AM, Sturla Molden <sturla at molden.no> wrote:
>
> Have put up a new version version of the shared memory ndarrays here:
>
> http://folk.uio.no/sturlamo/python/sharedmem-feb13-2009.zip
>
> usage:
>
> import numpy
> import sharedmem as shm
>
> arr = shm.empty(...)
> arr = shm.ones(...)
> arr = shm.zeros(...)
>
> As for the memory leak reported by Gaël previously: This is a bug in
> multiprocessing, not in our code. The offending line is 353 in
> multiprocessing/forking.py. It shuts down sub-processes abruptly, by
> using os._exit for suicide, preventing any clean-up code from executing.
> Change this line to "sys.exit(exitcode)" and it works as expected. The
> bug has been reported to Jesse Noller.
>
>
> Regards,
>
> Sturla Molden
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list