Do you have a MPI_Finalize(); in your code?  I think you will need at least something like this

 

#incldue <mpi.h>

 

int main(int argc. char **argv){

            MPI_Init(&argc, &argv);

 

            MPI_Finalize();

            return 0;

}

 

$ mpicc test.c –o test

$ lamboot

$ mpirun –np 2 test

 

Sam Adams

General Dynamics - Network Systems

Phone: 210.536.5945


From: lam-bounces@lam-mpi.org [mailto:lam-bounces@lam-mpi.org] On Behalf Of Muhammad Faiz Misman
Sent: Tuesday, March 20, 2007 10:23 PM
To: lam@lam-mpi.org
Subject: LAM: help me

 

hi...

hi im having a problem during running my mpi program. when im try to run my program, this error happened:

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 26349 failed on node n0 (10.1.1.1) due to signal 13.


I've write already th return 0; in my program but the error still happen. please help me.
for your information im using LAM/MPI on rock cluster and my program using c++.

thanks...