Skip to content

randomprimate/mpi_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Required libraries for Ubuntu 16.04.

sudo apt-get install libopenmpi-dev
sudo apt install openmpi-bin

Install MPI4py and any other dependency

pip install -r requirements

Install this on each decive in your cluster.

Run

Execute the script with mpiexec.

mpiexec -n 2 --host ip-or-hostname-1,ip-or-hostname-2 python script-name.py

# Example
# mpiexec -n 2 --host 192.168.0.9,192.168.0.7 python first.py

About

Parallel computing with MPI and Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages