[SciPy-user] shared memory machines

Sturla Molden sturla@molden...
Fri Feb 13 09:00:58 CST 2009


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


More information about the SciPy-user mailing list