2008/11/27

Install MPICH2 in Mandriva 2009 single machine

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