- You will need the following prerequisites : download mpich2 from http://www.mcs.anl.gov/research/projects/mpich2/
- Set you environment : export CXX=icpc & export CC=icc
- ./configure --prefix=/home/YOU/MPICH2-install/ --enable-cxx --enable-sharedlibs=gcc
- make
- make install
- vi ~/.bashrc and plus "export PATH=/home/YOU/mpich2-install/bin:$PATH"
- touch ~/.mpd.conf
- touch .mpd.conf
- edit .mpd.conf to add line like that secretword=
How to run a MPI program:
- mpd &
mpdtrace
mpdallexit - mpdboot -n
-f mpd.hosts - mpd &
mpdtrace -l - mpdtrace
- mpdringtest 100
- mpiexec -n
hostname - mpiexec -n 2 c.out
- mpdallexit
- How many processor: mpdboot -n
-f mpd.hosts - mpd &
- Run your parallel program: mpiexec -n 2 c.out
- Clean mpd: mpdallexit