Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parallel computing

Tags:

python

I have a two dimensional table (Matrix) I need to process each line in this matrix independently from the others. The process of each line is time consuming. I'd like to use parallel computing resources in our university (Canadian Grid something)

Can I have some advise on how to start ? I never used parallel computing before.

Thanks :)

like image 818
Amcum Yidwen Avatar asked Jun 04 '26 20:06

Amcum Yidwen


1 Answers

Start here: http://docs.python.org/library/multiprocessing.html

Be sure to read this: http://docs.python.org/library/multiprocessing.html#examples

This may be helpful: http://www.slideshare.net/pvergain/multiprocessing-with-python-presentation.

While excellent, it includes threads and multiprocessing, even though multiprocessing is often far, far superior to attempting multi-threading.

For Grid computing, multi-threading is largely useless.

Also, you probably also want to read up on celery.

like image 127
S.Lott Avatar answered Jun 06 '26 10:06

S.Lott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!