basic MPI2 instructions

From: E. Vesperini <vesperin@einstein.physics.drexel.edu>
Date: Wed Mar 30 2005 - 17:19:02 EST

There is now a demo code available for you to play with and since
this code has been written using MPI2, I thought a few basic
instructions about MPI2 could be useful.

To be able to run and compile MPI2 codes you have to:

1) create (in your home directory) a mpd.hosts file with the list of nodes
you are planning to use

for example

frinkiac1
frinkiac4

2) create (in your home directory) .mpd.conf containing the following line

secretword=some-secret-word

3) chmod 600 .mpd.conf

4) boot the machines with

mpdboot -n number_of_hosts -f mpd.hosts

(
a) you can check that the machines have actually been booted with mpdtrace
b) when you are done with MPI2 at the end of the day you can do
mpdallexit
)

5) the C++ compiler is mpi2CC

a simple code (like the demo code) can be compiled this way

mpi2CC file.cc -o file

6) to run a code

mpiexec -n number_of_processes_you_want ./file

Of course there is much more to know but this should be enough to start playing
with the demo code.

Enrico
Received on Wed Mar 30 17:19:03 2005

This archive was generated by hypermail 2.1.8 : Fri Aug 08 2008 - 19:25:03 EDT