[SciPy-user] shared memory machines

Robert Kern robert.kern@gmail....
Mon Feb 2 00:51:51 CST 2009


On Mon, Feb 2, 2009 at 00:38, Gael Varoquaux
<gael.varoquaux@normalesup.org> wrote:
> I think I should write empty_shmem, to complete hide the multiprocessing
> Array, delete my useless SharedMemArray class, integrate your number of
> processor function, and recirculate my code, if it is OK with you. In a
> few iterations we can propose this for integration in numpy.

Here's mine, FWIW. It goes down directly to the multiprocessing.heap
code underlying the Array stuff. On Windows, the objects transfer via
pickle while under UNIX, they must be inherited. Windows mmap objects
can be pickled while UNIX mmap objects can't. Like Sturla says, we'd
have to use named shared memory to get around this on UNIX.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shared_array.py
Type: text/x-python-script
Size: 2727 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20090202/6780d012/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.py
Type: text/x-python-script
Size: 1405 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20090202/6780d012/attachment-0003.bin 


More information about the SciPy-user mailing list