Parallel Programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Parallel Programming

can we use openMp in python to achieve goal of parallel programming better?

11th Apr 2020, 9:01 AM
Muhammad Faheem Nasir
Muhammad Faheem Nasir - avatar
2 Answers
+ 1
you can use openmp on python (https://aalto-scicomp.readthedocs.io/triton/examples/python_openmp.html), btw for work with parallel programing in python there is way more better modules for python (https://wiki.python.org/moin/ParallelProcessing)
11th Apr 2020, 10:19 AM
Vicente Gras Mas
Vicente Gras Mas - avatar
0
Due to interpreter, there is no way to use openMP in python. Most people who do parallel processing(or they believe they are doing in python) use multiprocessing module. OpenMP only works stable in C/C++. Other ways to do parallel processing is to write golang(which i encourage everyone to do it) or tweak openCL with java
11th Apr 2020, 10:23 AM
Talha Altınel (The Last Sith Lord)
Talha Altınel (The Last Sith Lord) - avatar