<!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.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=380283201-01122005><FONT face=Arial
color=#0000ff size=2>You could do an MPI_Allgather on the process name. As a
result, each process would get an array of process names in rank
order.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=380283201-01122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=380283201-01122005><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<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>Ali
Eghlima<BR><B>Sent:</B> Wednesday, November 30, 2005 4:13 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [MPICH] How to get the rank of a
known process by name on other nodes<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>Hello,</FONT> <BR><BR><FONT
face=sans-serif size=2>I am a new user of MPICH2, I am looking to find
out best way to get rank of a known process by name on other nodes.</FONT>
<BR><FONT face=sans-serif size=2>I don't want to enforce serialize start up
through config file or other ways to get known rank for every processes in the
system.</FONT> <BR><FONT face=sans-serif size=2>With my limited knowledge on
MPI-2, I guess I have two choices.:</FONT> <BR><BR><FONT face=sans-serif
size=2> 1 - Every process after initialization, get its own
rank and send a message to all with it's rank and its predefined process
name.</FONT> <BR><BR><FONT face=sans-serif size=2> 2 - Could, a process
use the Mpi_Publish_Name(), to associate its name with its rank, like a
distributed name server. Then, other process could</FONT> <BR><FONT
face=sans-serif size=2> useMpi_Lookup_name() to get
the rank. I know that Mpi_Publish_Name() requires a name with a port
number, and if a port number is not an open</FONT> <BR><FONT face=sans-serif
size=2> port the behavior depends on implementation.
How MPIVH2 react to this case.</FONT> <BR><BR><FONT face=sans-serif size=2>Is
there any other way to get the rank.</FONT> <BR><BR><FONT face=sans-serif
size=2>Thanks</FONT> <BR><BR><FONT face=sans-serif size=2>Ali,</FONT>
<BR><FONT face=Arial color=#5f5f5f size=1> </FONT> <BR><FONT face=Arial
size=2> </FONT></BLOCKQUOTE></BODY></HTML>