<!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><SPAN class=469304914-15042008><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=469304914-15042008><FONT face=Arial
color=#0000ff size=2> It was my mistake. You have to set the PMI_RANK env
variable to 0 (not 1).</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><SPAN class=469304914-15042008><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></P>
<P><SPAN class=469304914-15042008><FONT face=Arial color=#0000ff
size=2>Jayesh</FONT></SPAN></P><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Raymond L Swartz
[mailto:Raymond.L.Swartz@aero.org] <BR><B>Sent:</B> Tuesday, April 15, 2008 9:25
AM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B> RE: [mpich-discuss] MPICH2
mpiexec console window on XP?<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>Thank you for your quick
reply.</FONT> <BR><BR><FONT face=sans-serif size=2>I just tried as you
suggested, and when I issued the run command nothing happened. I didn't
get the console window but I also did not have the program start up.</FONT>
<BR><BR><FONT face=sans-serif size=2>By looking at the proces window I see the
program starts up very briefly and then shuts down. No error is generated.
I'm currently looking for what is happening with the debugger.</FONT>
<BR><BR><FONT face=sans-serif size=2>Without these settings the program starts
up with the new console window.</FONT> <BR><BR><FONT face=sans-serif size=2>Is
there a mistake somewhere in the instructions below?</FONT> <BR><BR><FONT
face=sans-serif size=2>Is this the direction that the MPI project is going in
the future, where the user has to do special steps to get basic single-processor
operation? Our application had (with the previous library) been something
that the basic 'clueless user' could use in single-processor mode without ever
knowing it had MPI capability, but for the saavy they could fire it up with
mpiexec and be off to the races with parallel processing. The 'clueless
user' I'm talking about doesn't even know what an envirfonment variable is, not
to mention how to set it. I'm concerned about how we keep operating in
that model with the new library.</FONT> <BR><BR><FONT face=sans-serif
size=2>Thanks,</FONT> <BR><FONT face=sans-serif size=2>Ray</FONT>
<BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>"Jayesh Krishna"
<jayesh@mcs.anl.gov></B> </FONT>
<P><FONT face=sans-serif size=1>04/14/2008 02:59 PM</FONT> </P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD><FONT face=sans-serif size=1>Raymond L Swartz
<Raymond.L.Swartz@aero.org></FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD><FONT face=sans-serif
size=1><mpich-discuss@mcs.anl.gov></FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD><FONT face=sans-serif size=1>RE: [mpich-discuss] MPICH2 mpiexec
console window on XP?</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT face=Arial
color=blue size=2>Hi,</FONT> <BR><FONT face=Arial color=blue size=2> 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.</FONT> <BR><FONT face=Arial color=blue
size=2> 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.).</FONT>
<BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>########### PMI vars to be set for single process MPI jobs with no PM
###########</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_ROOT_HOST=%COMPUTERNAME%</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_ROOT_PORT=9222</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_ROOT_LOCAL=1</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_RANK=1</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_SIZE=1</FONT>
<P><FONT face=Arial color=blue size=3>set PMI_KVS=mpich2</FONT>
<P><FONT face=Arial color=blue
size=2>#######################################################################</FONT>
<BR><FONT face=Arial color=blue size=2> Please note that you should unset
the variables before running other MPI jobs.</FONT> <BR><FONT face=Arial
color=blue size=2> 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.</FONT> <BR><FONT size=3> </FONT> <BR><FONT
face=Arial color=blue size=2>(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()).</FONT> <BR><FONT
size=3> </FONT> <BR><FONT face=Arial color=blue size=2>Regards,</FONT>
<BR><FONT face=Arial color=blue size=2>Jayesh</FONT> <BR>
<HR>
<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<B><BR>Sent:</B> Monday, April 14, 2008 4:25 PM<B><BR>To:</B>
mpich-discuss@mcs.anl.gov<B><BR>Subject:</B> [mpich-discuss] MPICH2 mpiexec
console window on XP?</FONT><FONT size=3><BR></FONT><BR><FONT face=sans-serif
size=2><BR>Hi,</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif
size=2><BR>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><FONT size=3> <BR></FONT><FONT face=sans-serif size=2><BR>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><FONT size=3> <BR></FONT><FONT
face=sans-serif size=2><BR>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><FONT size=3>
<BR></FONT><FONT face=sans-serif size=2><BR>This is new behavior.
Previously we never saw this window. The console window is blank,
and nothing appears in it.</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif
size=2><BR>Is there a compile-time way to turn it off?</FONT><FONT size=3>
<BR></FONT><FONT face=sans-serif size=2><BR>If it matters, we are building the
application in VC++, and using Qt4 as the GUI library.</FONT><FONT size=3>
<BR></FONT><FONT face=sans-serif size=2><BR>Thanks,</FONT><FONT size=3>
</FONT><FONT face=sans-serif size=2><BR>Ray Swartz</FONT><FONT size=3>
</FONT><BR></BODY></HTML>