<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=041302814-02092008></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=041302814-02092008>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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=041302814-02092008></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=041302814-02092008>mpiexec also returns an error code if
there is any error within mpiexec.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=041302814-02092008>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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=041302814-02092008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=041302814-02092008>-Jayesh</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Calin
Iaru<BR><B>Sent:</B> Tuesday, September 02, 2008 3:23 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] mpiexec returns
0<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>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.</FONT></DIV></BODY></HTML>