LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Deepu Philip (dphilip_at_[hidden])
Date: 2003-11-28 21:05:16


Hi,

  To run the compiled program u might need to do the following.
  Assume u have a program named hello.c
  make sure that you have a makefile that could make the project for you.
  Once the executable is made, u need to copy the execuatble to all nodes
in the cluster. If u have setup the ssh copy facility it can be done. This
also depends on the host allow and host deny options made during the time
of setting up the cluster. You might need to ask ur administrator to see
whethere he/she has some utility scrpits written to copy the execuatbel to
all nodes in the cluster.
  In my case I have my script called bwcp, which copies the execuatble to
all nodes in the cluster.
  The commands look something like this.

  $make
  mpicc -g -ansi -I. -c hello
  $bwcp "hello" node01 - node20
  *****Copied hello to nodes through 1 - 20 *******
  $lamboot
  now u will get the lamboot and the message that the daemon is runnning
  $mpirun N01-20 hello
  this should run the program on the cluster.

  There are some custamizations that i did for my cluster to make the
program running easy. So this might be little different to what u have, but
should give u a general idea.

Deepu