LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Oren Shapira (orensha_at_[hidden])
Date: 2005-08-29 10:26:22


Hello!

I have an iterative algorithm on master that sends the data to the slaves in the beginning of every iteration, the slaves return the results before the master starts the new iteration.
Currently the code goes as follows:
for (iter=1;iter<NumIter; iter++)
  {
    if (myid==0)
      //masters part
    if (myid!=0)
      //slaves part
  }
This code works good, but if I change "for" loop to the "while" loop, the algorithm fails. The error msg is following:

MPI_Recv: process in local group is dead (rank 1, MPI_COMM_WORLD)
Rank (1, MPI_COMM_WORLD): Call stack within LAM:
Rank (1, MPI_COMM_WORLD): - MPI_Recv()
Rank (1, MPI_COMM_WORLD): - main()
..........................................
.........................................
.............
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code. This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.
 
PID 4224 failed on node n2 (10.132.101.3) with exit status 1.

Do you have any idea what it can be?

-----------------------------------------------------------------
Oren Shapira,
Research Assistant
Multimedia and Intelligent Systems Research Team
Industrial and Management Engineering Department
Ben Gurion University of the Negev,
Beer-Sheva, 84105, Israel.
Office: 972-8-6472240
Fax: 972-8-6472958
------------------------------------------------------------------