LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: rtichy_at_[hidden]
Date: 2006-02-13 17:36:50


I am trying to run my mpi ap using lam on my home machine. The problem is the
application uses the rank returned by 'MPI::COMM_WORLD.Get_rank()' to figure
out who is who and distribute information accordingly

The problem is that on my machine, when running the command:

mpirun -np 4 myapp myargs

... all processes return the same rank so they all think they are the master
and
my app crashes. Am I missing something naive or is there a way to force lam to
give each process a different rank even when running on a single processor?

I am really a little stuck on this one and after 2 odd hours of trying to find
a
relevant post I just gave up. Can anyone suggest something?