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-15 08:18:43


Hi,

Quoting Esteban Fiallos <erf008_at_[hidden]>:

> Well, it depends on what your program is supposed to do. If, for
> instance, you are performing a send and receive operation that
> requires more than one processor, then the program will crash.

It does exactly this... rank 0 id the 'master', rank 1 is the 'foreman' and all
higher ranks are workers. Messages are sent to different agents depending on
their rank. Is there any way to force lam to asign different ranks on one
processor?

-Rich

>
> Could you provide a snippet of the code?
>
> -Esteban.
>
>
> On Feb 14, 2006, at 11:02 AM, rtichy_at_[hidden]:
>
> > From: rtichy_at_[hidden]
> > Date: February 13, 2006 4:36:50 PM CST
> > To: lam_at_[hidden]
> > Subject: LAM: trouble testing mpi on one processor
> > Reply-To: General LAM/MPI mailing list <lam_at_[hidden]>
> >
> >
> >
> >
> > 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?
> >
>
>