The problem with this program is that it does not call
MPI_Finalise() and also a.exec() may not be returning 0.
Every MPI program must call MPI_Finalize before exiting.
You could have something like this.
int ret = a.exec();
MPI_Finalize();
return ret;
This might help you figure out where the error lies. Also for
returning values you might want to read MPI_Finalize() man page.
Nihar
On Wed, 24 Sep 2003, visor wrote:
- I'm creating and compilind the project with MPI library.
- if it running in single machine - all ok if
- mpirun N visual_pro - has incorrect finish.
- Probably anyone have a samples?
-
- Initial code:
- int main
- {
- MPI_Init( &argc, &argv );
- KApplication a;
- Backprop *backprop = new Backprop();
- a.setMainWidget(backprop);
- backprop->show();
- return a.exec();
- }
- after few seconds it finish and in console the massage
-
- 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 16764 failed on node n0 (212.182.18.94) with exit status 1.
-
-
- Thanks.
- _______________________________________________
- This list is archived at http://www.lam-mpi.org/MailArchives/lam/
-
---------------------------------------
Nihar Sanghvi
LAM-MPI Team
Graduate Student (Indiana University)
http://www.lam-mpi.org
--------------------------------------
|