References:

Requirements:

You need to have the following software properly installed in order to buildĀ MPI for Python:

Installation with pip:

python -m pip install mpi4py

or

python3 -m pip install mpi4py

Testing Installation:

Run the following command in your terminal:

mpirun -n 4 python -m mpi4py.bench helloworld

or

mpirun -n 4 python3 -m mpi4py.bench helloworld

The output should look like this (except for the username at the end):

Untitled