<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>MPICH2</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=864474520-06112007>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=864474520-06112007> You should not have to make any changes to your
existing system (The various options supported by mpiexec might
change/standardized but any functionality supported by SMPD should be available
with the new process manager).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=864474520-06112007></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>R<SPAN
class=864474520-06112007>egards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=864474520-06112007></SPAN></FONT></FONT></FONT><SPAN
class=864474520-06112007></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2>J<SPAN
class=864474520-06112007>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> Sudan, Hari Hara
[mailto:Hari.H.Sudan@conocophillips.com] <BR><B>Sent:</B> Tuesday, November 06,
2007 12:41 PM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>Hi Jayesh,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>Thanks for the information.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>If the new process manager outdates the smpd, does it have
any impact on the communication across PC to Linux. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>What changes should we expect from any of our
implementation if we use the new process manager.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=395583818-06112007><FONT face=Arial
color=#0000ff size=2>Hari</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jayesh Krishna [mailto:jayesh@mcs.anl.gov]
<BR><B>Sent:</B> Tuesday, November 06, 2007 12:09 PM<BR><B>To:</B> Sudan, Hari
Hara<BR><B>Cc:</B> mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=443080618-06112007>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=443080618-06112007> The latest version of MPICH2 does not include the
changes for singleton-init. The changes are slated for a future
release.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=443080618-06112007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=443080618-06112007>(Note: Meanwhile we are also in the process of
implementing a new process manager which would outdate smpd. It should be
out sometime next year.)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=443080618-06112007><STRONG><FONT face=Tahoma
size=2>Regards,</FONT></STRONG></SPAN></DIV>
<DIV><SPAN class=443080618-06112007><STRONG><FONT face=Tahoma
size=2>Jayesh</FONT></STRONG></SPAN></DIV>
<DIV><SPAN class=443080618-06112007><STRONG><FONT face=Tahoma
size=2></FONT></STRONG></SPAN> </DIV>
<DIV>
<HR tabIndex=-1>
</DIV>
<DIV><FONT face=Tahoma size=2><B>From:</B> Sudan, Hari Hara
[mailto:Hari.H.Sudan@conocophillips.com] <BR><B>Sent:</B> Tuesday, November 06,
2007 11:17 AM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=786001517-06112007><FONT face=Arial
color=#0000ff size=2>Jayesh,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=786001517-06112007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=786001517-06112007><FONT face=Arial
color=#0000ff size=2>I was trying to find out if the singleton init
(non-MPI process calling MPI_Init() and transforming into an MPI process)
has been implemented in the new versions. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=786001517-06112007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=786001517-06112007><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jayesh Krishna [mailto:jayesh@mcs.anl.gov]
<BR><B>Sent:</B> Thursday, June 14, 2007 3:46 PM<BR><B>To:</B> Sudan, Hari
Hara<BR><B>Cc:</B> mpich2-maint@mcs.anl.gov<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=276483620-14062007>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=276483620-14062007> </SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=276483620-14062007> Currently the support for singleton
init (a non-MPI process calling MPI_Init() and transforming into an MPI
process) is limited in windows. We are in the process of implementing the
extended PMI wire protocol which would enable users to use functions like
MPI_Comm_spawn() from a singleton MPI process.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=276483620-14062007><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=276483620-14062007><FONT face=Arial color=#0000ff
size=2>Jayesh</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sudan, Hari Hara
[mailto:Hari.H.Sudan@conocophillips.com] <BR><B>Sent:</B> Thursday, June 14,
2007 12:54 PM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2>The Application actually creates a dll that dynamically
links to a 3rd party application.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2>The MPI calls ( MPI SPAWN) work perfectly fine
when we launch using mpiexec instead of calling MPI_INIT inside the
code.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2>After calling MPI_Init the only other MPI calls made
are</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
size=2>MPI_INIT(NULL,NULL)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
size=2>....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
size=2>....</FONT></SPAN></DIV><FONT size=2>
<P><FONT face=Arial>MPI_Status stat;</FONT></P>
<P><FONT face=Arial>MPI_Info spawn_info;</FONT></P>
<P><FONT face=Arial></FONT></P>
<P><FONT face=Arial>MPI_Comm_rank( MPI_COMM_WORLD, &my_rank );</FONT></P>
<P><FONT face=Arial>MPI_Comm_size( MPI_COMM_WORLD, &num_proc );</FONT></P>
<P><FONT face=Arial>CString csCommandLine, csFile;</FONT></P></FONT><FONT
color=#008000 size=2></FONT><FONT size=2>
<P><FONT face=Arial>csCommandLine.Format ( </FONT></FONT><FONT face=Arial
color=#800000 size=2>"\"%s\\submodel.bat\" \"%s\" \"%s\" \"-v %s -network_init
-mpi_init -noprompt\" \"%s\""</FONT><FONT face=Arial size=2>,</FONT></P>
<P><FONT face=Arial size=2>GetApp()->GetLoadAppPath(),</FONT></P>
<P><SPAN class=149551719-13062007><FONT face=Arial color=#0000ff
size=2>.......</FONT></SPAN></P>
<P><FONT face=Arial size=2><SPAN
class=149551719-13062007>.......</SPAN></FONT></P>
<P><FONT face=Arial size=2>MPI_Info_create( &spawn_info );</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>if</FONT><FONT size=2><FONT face=Arial>
( !obCaseDetails.sMachine.IsEmpty() ) </FONT></P>
<P><FONT face=Arial>{</FONT></P>
<P><FONT face=Arial>MPI_Info_set( spawn_info, </FONT></FONT><FONT face=Arial
color=#800000 size=2>"host"</FONT><FONT size=2><FONT face=Arial>, strHost
);</FONT></P>
<P><FONT face=Arial>}</FONT></P>
<P><FONT face=Arial>MPI_Info_set( spawn_info, </FONT></FONT><FONT face=Arial
color=#800000 size=2>"path"</FONT><FONT size=2><FONT face=Arial>, strPath
);</FONT></P>
<P><FONT face=Arial>MPI_Info_set( spawn_info, </FONT></FONT><FONT face=Arial
color=#800000 size=2>"wdir"</FONT><FONT size=2><FONT face=Arial>, strWdir
);</FONT></P>
<P><FONT face=Arial>MPI_Info_set( spawn_info, </FONT></FONT><FONT face=Arial
color=#800000 size=2>"file"</FONT><FONT size=2><FONT face=Arial>, strFile
);</FONT></P>
<P><FONT face=Arial>ierr = MPI_Comm_spawn( slave, MPI_ARGV_NULL, 1, spawn_info,
my_rank,</FONT></P>
<P><FONT face=Arial>MPI_COMM_WORLD, &comm_child, MPI_ERRCODES_IGNORE
);</FONT></P>
<P><FONT face=Arial>MPI_Info_free( &spawn_info );</FONT></P></FONT>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=149551719-13062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jayesh Krishna [mailto:jayesh@mcs.anl.gov]
<BR><B>Sent:</B> Wednesday, June 13, 2007 12:10 PM<BR><B>To:</B> Sudan, Hari
Hara<BR><B>Cc:</B> mpich2-maint@mcs.anl.gov<BR><B>Subject:</B> RE: MPICH2 - can
you send us your mpi pgm ?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=876340517-13062007>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=876340517-13062007> Can you send us your sample MPI program
?</SPAN></FONT></DIV>
<DIV><SPAN class=876340517-13062007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=876340517-13062007><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=876340517-13062007><FONT face=Arial color=#0000ff
size=2>Jayesh</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sudan, Hari Hara
[mailto:Hari.H.Sudan@conocophillips.com] <BR><B>Sent:</B> Wednesday, June 13,
2007 11:27 AM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B>
MPICH2<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Jayesh,</FONT> </P>
<P><FONT face=Arial size=2>Is there a way to start MPI process in the
application using MPI_INIT() rather than start it automatically by launch using
"mpiexec" command.</FONT></P>
<P><FONT face=Arial size=2>I read in the "Using MPI-2" book that MPI_init could
be called, but when I tried it instead of using mpiexec, it did not work.
</FONT></P>
<P><FONT face=Arial size=2>It got hung when I was trying to spawn another
process (MPI_COMM_SPAWN).</FONT> </P>
<P><FONT face=Arial size=2>Any suggestions would be appreciated.</FONT> </P>
<P><FONT face=Arial size=2>Thanks</FONT> </P>
<P><I><FONT face=Arial size=2>Regards,</FONT></I> <BR><FONT face=Arial
size=2>Hari Sudan</FONT> <BR><FONT face=Arial size=2>Associate Reservoir
Engineer</FONT> <BR><FONT face=Arial size=2>ConocoPhillips Petroleum Co.</FONT>
<BR><FONT face=Arial size=2>600 N. Dairy Ashford, NS 2068</FONT> <BR><FONT
face=Arial size=2>Ph: 281-293-4873</FONT> <BR><FONT face=Arial
size=2>Hari.H.Sudan@conocophillips.com</FONT> </P></BODY></HTML>