[mpich-discuss] mpiexec returns 0

Calin Iaru calin at dolphinics.com
Wed Sep 3 11:14:43 CDT 2008


I forgot about hostname. Thanks; there are no problems.

  ----- Original Message ----- 
  From: Jayesh Krishna 
  To: 'Calin Iaru' 
  Cc: mpich-discuss at mcs.anl.gov 
  Sent: Tuesday, September 02, 2008 5:41 PM
  Subject: RE: [mpich-discuss] mpiexec returns 0


  # 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 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/20080903/394a63e0/attachment.htm>


More information about the mpich-discuss mailing list