mpi4py

Python bindings for Message Passing Interface (MPI) parallel computing

brewmacoslinux
Try with needOr install directly
Source

About

Python bindings for MPI

Commands

mpiexecmpirunpython

Examples

Run a simple MPI Python script on 4 processes$ mpiexec -n 4 python script.py
Import mpi4py in a Python script to use MPI functionality$ python -c "from mpi4py import MPI; print(MPI.COMM_WORLD.Get_rank())"
Execute parallel Python code with MPI on 2 nodes$ mpirun -np 2 python parallel_computation.py