<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18241">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Tahoma>I forgot about hostname. Thanks; there are no 
problems.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; 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 5:41 
  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 color=#0000ff size=2 face=Arial><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&nbsp;are not tied to MPI programs.</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><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).&nbsp;An app 
  dev/user also needs the&nbsp;application exit code&nbsp;to be reported some 
  way.</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
  class=594042915-02092008></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
  class=594042915-02092008>&nbsp;The current design provides more information to 
  the user/dev than the design you suggest.</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
  class=594042915-02092008>&nbsp;Do you have any problems in your env with the 
  current design ?</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
  class=594042915-02092008></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
  class=594042915-02092008>-Jayesh</SPAN></FONT></DIV>
  <DIV dir=ltr align=left>
  <HR tabIndex=-1>
  </DIV>
  <DIV dir=ltr align=left><FONT size=2 face=Tahoma><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 size=2 face=Tahoma>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 size=2 face=Tahoma></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Tahoma>Thanks for the info so far.</FONT></DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
  dir=ltr>
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="FONT: 10pt arial; BACKGROUND: #e4e4e4; 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 color=#0000ff size=2 face=Arial><SPAN 
    class=041302814-02092008></SPAN></FONT><FONT color=#0000ff size=2 
    face=Arial><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&nbsp;MPI_Finalize() was called or not) returned from an 
    MPI process associated with the job.</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
    class=041302814-02092008></SPAN></FONT><FONT color=#0000ff size=2 
    face=Arial><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 color=#0000ff size=2 face=Arial><SPAN 
    class=041302814-02092008>So if&nbsp;there is&nbsp;an error (in mpiexec OR in 
    any MPI process) in the MPI job you should be able to&nbsp;determine 
    that&nbsp;by a non-zero&nbsp;return code from mpiexec.</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
    class=041302814-02092008></SPAN></FONT>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
    class=041302814-02092008>-Jayesh</SPAN></FONT></DIV><BR>
    <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
    <HR tabIndex=-1>
    <FONT size=2 face=Tahoma><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 size=2 face=Tahoma>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></BLOCKQUOTE></BODY></HTML>