Install and configure MPI

From SourceWiki
Jump to navigation Jump to search


Article in construction

Pre-requesite: ssh key pair authentication

To use MPI on a network of computers, ypu need to be able to log in any of the computer without user interaction (password etc...) This is easily achieved using secure shell key authentication. The methodology to setup ssh to use key authentication is described in the article entitles configure ssh for MPI.

Download MPI

You can download from http://www-unix.mcs.anl.gov/mpi/mpich2/. You will end up with a gzipped tarbal. For the sake of MPI can be downloaded from http://www-unix.mcs.anl.gov/mpi/mpich2/. Install MPI and the MPI Fortran 90 compiler (mpif90) according to the MPI documentation. extract

Compilation

mpi directory tmp directory export F()=ifort cd tmp dir mpidir/configure --prefix=/mpidir

wait...

make 2>&1 make install

Configuration

add /path/to/mpi to PATH

create .mpd.conf as 600 with the sentence

secretword=something

something is a random string

Create hosts file

touch mpd.hosts

Trouble shooting

/etc/hosts