<!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=594042915-02092008># 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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008># 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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008> The current design provides more information to
the user/dev than the design you suggest.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008> Do you have any problems in your env with the
current design ?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=594042915-02092008>-Jayesh</SPAN></FONT></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><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 10:23
AM<BR><B>To:</B> mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re:
[mpich-discuss] mpiexec returns 0<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>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? </FONT></DIV>
<DIV><FONT face=Tahoma size=2></FONT> </DIV>
<DIV><FONT face=Tahoma size=2>Thanks for the info so far.</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jayesh@mcs.anl.gov href="mailto:jayesh@mcs.anl.gov">Jayesh
Krishna</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=calin@dolphinics.com
href="mailto:calin@dolphinics.com">'Calin Iaru'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=mpich-discuss@mcs.anl.gov
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 02, 2008 4:52
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [mpich-discuss] mpiexec
returns 0</DIV>
<DIV><BR></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>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></BLOCKQUOTE></BODY></HTML>