[mpich-discuss] mpiexec returns 0

Jayesh Krishna jayesh at mcs.anl.gov
Tue Sep 2 10:41:04 CDT 2008


# The job launcher and process manager can also be used to launch non-MPI
programs (mpiexec -n 2 hostname). So the job launcher and PM are not tied
to MPI programs.
# You can always get/handle the error code of MPI functions within the MPI
process (Using the error handler for ex). An app dev/user also needs the
application exit code to be reported some way.
 
 The current design provides more information to the user/dev than the
design you suggest.
 Do you have any problems in your env with the current design ?
 
-Jayesh
  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Calin Iaru
Sent: Tuesday, September 02, 2008 10:23 AM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] mpiexec returns 0


I would expect that smpd and mpiexec would not be interested in what is
happening beyond MPI_Finalize. Can you tell me why was this decision made
- to propagate the application exit code? 
 
Thanks for the info so far.

----- Original Message ----- 
From: Jayesh  <mailto:jayesh at mcs.anl.gov> Krishna 
To: 'Calin Iaru' <mailto:calin at dolphinics.com>  
Cc: mpich-discuss at mcs.anl.gov 
Sent: Tuesday, September 02, 2008 4:52 PM
Subject: RE: [mpich-discuss] mpiexec returns 0

Hmmm... not really. mpiexec provided with MPICH2 on windows returns the
last non-zero exit code (has nothing to do wether MPI_Finalize() was
called or not) returned from an MPI process associated with the job.
mpiexec also returns an error code if there is any error within mpiexec.
So if there is an error (in mpiexec OR in any MPI process) in the MPI job
you should be able to determine that by a non-zero return code from
mpiexec.
 
-Jayesh

  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Calin Iaru
Sent: Tuesday, September 02, 2008 3:23 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] mpiexec returns 0


I would like to have a confirmation that mpiexec would return 0 if all
processes called MPI_Finalize(). Based on return value, some test scripts
can be stopped instead of having the output parsed.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080902/19feb6a3/attachment.htm>


More information about the mpich-discuss mailing list