15

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?

5
  • 4
    You might find this list useful: wiki.python.org/moin/ParallelProcessing Commented 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. Commented Oct 25, 2012 at 16:18
  • 1
    See also: stackoverflow.com/questions/11368486/openmp-and-python Commented 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. Commented 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"). Commented Feb 6, 2019 at 22:00

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.