Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18694
| Date | 2012-01-08 21:46 -0500 |
|---|---|
| From | Dave Angel <d@davea.name> |
| Subject | Re: Parallel Processing |
| References | <mailman.24510.1326051902.27777.python-list@python.org> <mailman.4536.1326067374.27778.python-list@python.org> <baff2c26-0cdf-4b1b-b7ee-1a9ad02d22f9@dp8g2000vbb.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4538.1326077174.27778.python-list@python.org> (permalink) |
On 01/08/2012 08:46 PM, Yigit Turgut wrote: > On Jan 9, 12:02 am, Dave Angel<d...@davea.name> 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. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Parallel Processing David Hoese <dhoese@gmail.com> - 2012-01-08 18:02 -0600
Re: Parallel Processing Yigit Turgut <y.turgut@gmail.com> - 2012-01-08 17:46 -0800
Re: Parallel Processing Dave Angel <d@davea.name> - 2012-01-08 21:46 -0500
csiph-web