<!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.16608" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008> The new behaviour that you see is due to the
support for "Singleton Init" processes that was added in 1.0.7 (It is an
expected behaviour). Currently there is no way to "turn off" the
feature.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008> You can start an MPI process without the use of a
process manager by specifying the PMI environment variables by hand (After
the PMI env variables are set the MPI library uses the values provided and does
not try to connect to the existing process manager, smpd, using the job
launcher, mpiexec.).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008>########### PMI vars to be set for single process MPI
jobs with no PM ###########</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2><SPAN class=927433921-14042008>
<P align=left><FONT face=Arial color=#0000ff size=3>set
PMI_ROOT_HOST=%COMPUTERNAME%</FONT></P>
<P align=left><FONT face=Arial color=#0000ff size=3>set
PMI_ROOT_PORT=9222</FONT></P>
<P align=left><FONT face=Arial color=#0000ff size=3>set
PMI_ROOT_LOCAL=1</FONT></P>
<P align=left><FONT face=Arial color=#0000ff size=3>set PMI_RANK<SPAN
class=927433921-14042008>=</SPAN>1</FONT></P>
<P align=left><FONT face=Arial><FONT color=#0000ff><FONT size=3>set
PMI_SIZE=<SPAN class=927433921-14042008>1</SPAN></FONT></FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=3>set
PMI_KVS=mpich2</FONT></P></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008>#######################################################################</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008> Please note that you should unset the variables
before running other MPI jobs.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008> We will fix our code in the next release so that
users don't see the console window of mpiexec when running their applications
(GUI apps). For now, please follow the instructions above to avoid automatic
launching of the job launcher.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=927433921-14042008>(PS: This support allows a singleton init MPI process
(MPI process started without a job launcher) to function as a normal
MPI process. eg: Without this support a singleton init MPI process
cannot spawn other MPI processes (MPI_Comm_spawn()).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=927433921-14042008></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>R<SPAN
class=927433921-14042008>egards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=927433921-14042008></SPAN></FONT></FONT></FONT><SPAN
class=927433921-14042008></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2>J<SPAN
class=927433921-14042008>ayesh</SPAN></FONT></FONT></FONT><BR></DIV>
<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>Raymond L
Swartz<BR><B>Sent:</B> Monday, April 14, 2008 4:25 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] MPICH2 mpiexec
console window on XP?<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>Hi,</FONT> <BR><BR><FONT
face=sans-serif size=2>I've just updated to MPICH2 1.0.7 for a project we have
here (which has been running with the previous version just fine) and notice
some new behavior.</FONT> <BR><BR><FONT face=sans-serif size=2>When the job
starts up now, in addition to the standard GUI we expect, we are seeing a
'console ' window with the title C:/Program Files/MPICH2/bin/mpiexec.exe.</FONT>
<BR><BR><FONT face=sans-serif size=2>This window does not show up if we launch
the executable as 'mpiexec -localonly 2 <executable>'. It only
appears if we launch the executable without the mpiexec invocation
'<executable>' (nominally, to run as a single-process job).</FONT>
<BR><BR><FONT face=sans-serif size=2>This is new behavior. Previously we
never saw this window. The console window is blank, and nothing appears in
it.</FONT> <BR><BR><FONT face=sans-serif size=2>Is there a compile-time way to
turn it off?</FONT> <BR><BR><FONT face=sans-serif size=2>If it matters, we are
building the application in VC++, and using Qt4 as the GUI library.</FONT>
<BR><BR><FONT face=sans-serif size=2>Thanks,</FONT> <BR><FONT face=sans-serif
size=2>Ray Swartz</FONT> </BODY></HTML>