[Numpy-discussion] Simple shared arrays
pivanov314 at gmail.com
Fri Dec 31 02:13:21 EST 2010
Erik Rigtorp, on 2010-12-30 21:30, wrote:
> I was trying to parallelize some algorithms and needed a writable
> array shared between processes. It turned out to be quite simple and
> gave a nice speed up almost linear in number of cores. Of course you
> need to know what you are doing to avoid segfaults and such. But I
> still think something like this should be included with NumPy for
> power users.
> This works by inheriting anonymous mmaped memory. Not sure if this
> works on windows.
I've successfully used (what I think is) Sturla Molden's
shmem_as_ndarray as outline here  and here  for these
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: Digital signature
More information about the NumPy-Discussion