mpi4py is the package for python to take advantage of mpi. I am try to install it on killdevil.
The modules: I got on killdevil are
Currently Loaded Modulefiles:
1) null 2) epd/7.2-2 3) openmpi_intel/12.1-5
And I run the commands:
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-1.3.1.tar.gz
tar -xzvf mpi4py-1.3.1.tar.gz
cd mpi4py-1.3.1
python setup.py install --user
Then it is successfully installed.
I do the test.
mpiexec -n 5 python demo/helloworld.py
Got the result:
Hello, World! I am process 1 of 5 on c-186-31.kd.unc.edu.
Hello, World! I am process 4 of 5 on c-186-31.kd.unc.edu.
Hello, World! I am process 0 of 5 on c-186-31.kd.unc.edu.
Hello, World! I am process 3 of 5 on c-186-31.kd.unc.edu.
Hello, World! I am process 2 of 5 on c-186-31.kd.unc.edu.