My project was to do some parallel algos in C using OpenMP. Now I would like to do the same project in Python. Is there anything available similar to openmp for python?
-
4You might find this list useful: wiki.python.org/moin/ParallelProcessingShawn Chin– Shawn Chin2012-10-25 16:18:23 +00:00Commented Oct 25, 2012 at 16:18
-
It won't be parallel in CPython, unless the code you're invoking has big chunks of C code in it. Python is not a very good platform for doing anything parallel.Dietrich Epp– Dietrich Epp2012-10-25 16:18:24 +00:00Commented Oct 25, 2012 at 16:18
-
1See also: stackoverflow.com/questions/11368486/openmp-and-pythonShawn Chin– Shawn Chin2012-10-25 16:20:07 +00:00Commented Oct 25, 2012 at 16:20
-
My opinion is to look at IPython (ipython.org) and examples of how they use zeromq to do parallel processing (ipython.org/ipython-doc/dev/parallel/parallel_intro.html). You could stick with iPython or try zeromq (or another messaging system) + multiple python interpreters yourself.jeff.vanvoorst– jeff.vanvoorst2012-10-25 20:18:01 +00:00Commented Oct 25, 2012 at 20:18
-
I'd suggest using Ray github.com/ray-project/ray, which is a library for parallel and distributed Python. It let's you run the same code on a single machine and a large cluster and also provides a clean way to parallelize both functions and classes (using "tasks" and "actors").Robert Nishihara– Robert Nishihara2019-02-06 22:00:18 +00:00Commented Feb 6, 2019 at 22:00
Add a comment
|