LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Esteban Fiallos (erf008_at_[hidden])
Date: 2006-02-14 16:43:29


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.

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?
>