<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jayesh,<br>
<br>
thanks for your response. We will use the "port in a file" method... <br>
I think it would not be so hard to implement it ourselves but it might
be not really worth doing it since we only have one process doing the
Open_port, followed by a collective accept. <br>
Thus only one process in our case would write to the file.<br>
<br>
Anyway, we will let you know if we make some patch to implement this
info key.<br>
<br>
Best regards,<br>
<br>
Jerome<br>
<br>
Le 23/09/2009 17:35, Jayesh Krishna a &eacute;crit&nbsp;:
<blockquote cite="mid:51B1B1F0190946BC84A2124ECB5E16AE@mcs.anl.gov"
 type="cite">
  <title></title>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <meta name="GENERATOR" content="MSHTML 8.00.6001.18812">
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="204193315-23092009">Hi,</span></font></div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="204193315-23092009">&nbsp;From the code it looks like
the info key, "ip_port", is not yet implemented for MPI_Open_port().</span></font></div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="204193315-23092009"></span></font>&nbsp;</div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="204193315-23092009">Regards,</span></font></div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="204193315-23092009">Jayesh</span></font></div>
  <br>
  <div dir="ltr" class="OutlookMessageHeader" align="left" lang="en-us">
  <hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>
[<a class="moz-txt-link-freetext" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of </b>John
Biddiscombe<br>
  <b>Sent:</b> Wednesday, September 23, 2009 9:46 AM<br>
  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
  <b>Subject:</b> Re: [mpich-discuss] MPI_Publish_name/Open_port on
windows<br>
  </font><br>
  </div>
Jayesh <br>
  <br>
&nbsp;&nbsp;&nbsp; MPI_Info_create (&amp;info);<br>
&nbsp;&nbsp;&nbsp; MPI_Info_set( info, "ip_port", "1957");<br>
  <br>
doesn't work either - by which we mean it doesn't give us the port we
asked for. Is this simply a case of "nobody implemented it" and if we
modify the source to check for the info key we can make it work - in
which case we'll patch the source and recompile. <br>
  <br>
Thanks<br>
  <br>
JB<br>
  <br>
  <br>
  <blockquote cite="mid:A9C45EA55573451AA41B9C557DBEDE67@mcs.anl.gov"
 type="cite">
    <p><font size="2">&nbsp; You can try opening an MPI port and writing the
port name returned to a file and have the other processes read it (Now
you have to make sure that only one process writes to the file OR have
some locking mechanism to modify the file).<br>
    <br>
Regards,<br>
Jayesh<br>
    <br>
-----Original Message-----<br>
From: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>
[<a href="mailto:mpich-discuss-bounces@mcs.anl.gov"
 moz-do-not-send="true">mailto:mpich-discuss-bounces@mcs.anl.gov</a>]
On Behalf Of Jerome Soumagne<br>
Sent: Wednesday, September 23, 2009 7:20 AM<br>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Subject: [mpich-discuss] MPI_Publish_name/Open_port on windows<br>
    <br>
Hi,<br>
    <br>
I'm using MPI_Comm_connect and accept to create the communication
between 2 different applications (simulation and visualization apps)
and I have 2 questions:<br>
    <br>
- on Linux, I use Open_port/Publish_name/Lookup_name to get the ip/port
from an app server registered in the same mpd ring - this works fine.<br>
The problem comes from Windows with the smpd daemon, whenever I try to
connect 2 simple tests (client/server), the client never finds the
registered name. However the smpd service is up and running. Is there a
way to tell the smpd service to use the same features of the mpd daemon
so that I could still use Publish_name and Lookup_name?<br>
    <br>
- Instead of using Publish_name/Lookup_name, I tried to simply define a
port with MPI_Open_port specifying an Info argument but it does not
work, how could I specify an ip/port to use? I want to always use the
same specific port and the MPI_PORT_RANGE environment variable only
allows me to specify a range of ports. Depending on some other MPI
processes running on the same machine for different tasks, I then get
different ports and if I try to have an MPI_PORT_RANGE like this :<br>
2646:2646, the other MPI processes crash because they don't have any
available socket. How can I tell the MPI_Open_port function to use a
defined port?<br>
    <br>
I thank you very much in advance.<br>
    <br>
Jerome Soumagne<br>
    <br>
--<br>
J&eacute;r&ocirc;me Soumagne<br>
CSCS, Swiss National Supercomputing Centre Galleria 2, Via Cantonale&nbsp; |
Tel: +41 (0)91 610 8258<br>
CH-6928 Manno, Switzerland | Fax: +41 (0)91 610 8282<br>
    <br>
    <br>
    </font></p>
  </blockquote>
  <br>
  <br>
  <pre class="moz-signature" cols="78">-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.cscs.ch/">http://www.cscs.ch/</a>
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
J&eacute;r&ocirc;me Soumagne
CSCS, Swiss National Supercomputing Centre 
Galleria 2, Via Cantonale  | Tel: +41 (0)91 610 8258
CH-6928 Manno, Switzerland | Fax: +41 (0)91 610 8282

</pre>
</body>
</html>