Parallel Computing with Python and MPI
I installed PyMPI (version 2.5b0) on my CentOS 5.5 (as a VirtualBox guest system).
The following short demo works:
import mpi
import time
time.sleep(10)
print "Hello World! my rank=", mpi.rank, " group size is=", mpi.size
see screen capture:
Before installing PyMPI I installed these packages:
1. MPICH2
2. Python-develop
Installation of PyMPI:
1. ./configure --with-includes=-I/usr/local/include
2. make
3. make check
4. make install (as root)
Good luck!
The following short demo works:
import mpi
import time
time.sleep(10)
print "Hello World! my rank=", mpi.rank, " group size is=", mpi.size
see screen capture:
Before installing PyMPI I installed these packages:
1. MPICH2
2. Python-develop
Installation of PyMPI:
1. ./configure --with-includes=-I/usr/local/include
2. make
3. make check
4. make install (as root)
Good luck!
Comments