LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2005-01-01 18:17:08


On Jan 1, 2005, at 9:18 AM, Imran Ahmed khan wrote:

> Hi,
> I just wrote a simple code for Broadcast a MSG . The code is working
> fine . But i got this error :
> -----------------------------------------------------------------------
> ------
> 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 2071 failed on node n1 (192.168.11.28) with exit status 4.
> -----------------------------------------------------------------------
> ------
>
> the code is :
>
> MPI_Bcast(message1,100,MPI_CHAR,0,MPI_COMM_WORLD);
> if (rank !=0)
> creat(message1,022); // Create a file
>
>
> This Code is making File on Non Zero rank. But i got error which i
> have written above.
> Please Help me in this regard

It doesn't look like this is a problem with either MPI_Bcast or your
call to creat. One of the processes exited with a status of 4 before a
call to MPI_Init. Do you have a call to exit(4) or exit(errno)?
Either could cause the problems you are seeing. You might want to look
at the "Debugging MPI Programs" section of the LAM/MPI FAQ for ideas on
how to debug your application.

   http://www.lam-mpi.org/faq/

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/