[SciPy-User] Parallel code

Sturla Molden sturla@molden...
Mon Nov 30 07:28:56 CST 2009


What do you mean by my suggestion using ctypes?

Why don't you use shared memory? Gaël Varoquaux and I wrote a shared 
memory backend for ndarrays earlier this year.


Sturla





Jose Gomez-Dans skrev:
> Hi!
> I want to run some code in parallel, and I have toyed with the idea of 
> either using the multiprocessing module, or using ipython (which is 
> quite easy to use). The main idea is to run a number of class methods 
> in parallel (unsurprisingly!), fed with some arguments. However, these 
> methods will need (read-)access to a rather large numpy array. Ideally 
> (and since this is running on a SMP box), this could be a chunk of 
> shared memory. I am aware of Sturla Molden's suggestion of using 
> ctypes, but I guess that I was wondering whether some magic simple 
> stuff is available off the shelf for this shared memory business?
>
> Thanks!
> J
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>   



More information about the SciPy-User mailing list