[mpich-discuss] mpiexec returns 0

Calin Iaru calin at dolphinics.com
Tue Sep 2 10:22:40 CDT 2008


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 Krishna 
  To: 'Calin Iaru' 
  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/f70965bb/attachment.htm>


More information about the mpich-discuss mailing list