Home:ALL Converter>How to run python script with mpi4py (using mpiexec) from within pycharm?

How to run python script with mpi4py (using mpiexec) from within pycharm?

Ask Time:2019-08-16T13:08:25         Author:Amr ALHOSSARY

Json Formatter

I have a python script that depends on mpi4py implementation of MPI. This needs to be run through mpiexec (or mpirun).

My Question is : How to run (and hopefully debug) a python script using mpiexec (or mpirun) from PyCharm directly?

Running mpiexec as an external tool is not a good idea, because I will not be able to debug it.

What can I do instead?

Author:Amr ALHOSSARY,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57519129/how-to-run-python-script-with-mpi4py-using-mpiexec-from-within-pycharm
yy