Parallel Processing

Dave Angel d at
Sun Jan 8 21:46:05 EST 2012

On 01/08/2012 08:46 PM, Yigit Turgut wrote:
> On Jan 9, 12:02 am, Dave Angel<d... at>  wrote:
>> <SNIP>
>> Then i'd try calling separate functions (declaring them in depfuncs).
>> And finally I'd try some 3rd party library.
> Don't think will try another package for the same task. I am now
> moving on to PP + PyCUDA to harness GPU available CPU cores.
> Thank you for the guidance.
Actually, I wasn't suggesting an alternative to pp, but rather 
introducing refs to libraries like numpy.  I don't know what pp's 
methodology is, but I can guess which parts are trivial, and which parts 
tend to be trickier.  Once things are in a separate process, it's best 
not to assume any shared state between the processes.  Thus I'd expect 
globals() to be copied, not shared.  And the error messages had very low 
line numbers, which I could take to mean they didn't add your imports 
and other stuff.

Point is, when i start having trouble with code that's inadequately 
documented, I try the simplest things, and work up to the complex ones.



More information about the Python-list mailing list