<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Intel MPI nameserver in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1270939#M8039</link>
    <description>&lt;P&gt;I'm able to find the `I_MPI_HYDRA_NAMESERVER` environment variable, but I'm not succeeding in using it. Do I need to start a server daemon?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  char
    port_name[] = "exampleport",
    service_name[] = "exampleservice";
  if (world_p==0) {
    MPI_Comm intercomm;
    MPI_Publish_name( service_name, MPI_INFO_NULL, port_name );
    printf("Name published\n");
    MPI_Unpublish_name( service_name, MPI_INFO_NULL, port_name );
  } else {
    MPI_Lookup_name( service_name,MPI_INFO_NULL,port_name );
  }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gives:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[c210-008 c:3] export I_MPI_HYDRA_NAMESERVER=`hostname`:8000
[c210-008 c:4] make publishbug &amp;amp;&amp;amp; mpiexec.hydra -n 2 publishbug
make: `publishbug' is up to date.
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYD_sock_connect (../../../../../src/pm/i_hydra/libhydra/sock/hydra_sock_intel.c:228): Retrying connection, retry_count=1, retries=0
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYD_sock_connect (../../../../../src/pm/i_hydra/libhydra/sock/hydra_sock_intel.c:243): unable to connect from "c210-008.frontera.tacc.utexas.edu" to "c210-008.frontera.tacc.utexas.edu" (Connection refused)
[mpiexec@c210-008.frontera.tacc.utexas.edu] mpiexec_connect_to_nameserver (../../../../../src/pm/i_hydra/mpiexec/mpiexec_utils.c:425): unable to connect to nameserver
[mpiexec@c210-008.frontera.tacc.utexas.edu] mpiexec_publish_name (../../../../../src/pm/i_hydra/mpiexec/mpiexec_utils.c:499): unable to connect to nameserver
[mpiexec@c210-008.frontera.tacc.utexas.edu] control_cb (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:1484): error publishing service
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYDI_dmx_poll_wait_for_event (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:80): callback returned error status
[mpiexec@c210-008.frontera.tacc.utexas.edu] main (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:2019): error waiting for event&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 17:00:58 GMT</pubDate>
    <dc:creator>Victor_E_1</dc:creator>
    <dc:date>2021-04-05T17:00:58Z</dc:date>
    <item>
      <title>Intel MPI nameserver</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1270939#M8039</link>
      <description>&lt;P&gt;I'm able to find the `I_MPI_HYDRA_NAMESERVER` environment variable, but I'm not succeeding in using it. Do I need to start a server daemon?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  char
    port_name[] = "exampleport",
    service_name[] = "exampleservice";
  if (world_p==0) {
    MPI_Comm intercomm;
    MPI_Publish_name( service_name, MPI_INFO_NULL, port_name );
    printf("Name published\n");
    MPI_Unpublish_name( service_name, MPI_INFO_NULL, port_name );
  } else {
    MPI_Lookup_name( service_name,MPI_INFO_NULL,port_name );
  }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gives:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[c210-008 c:3] export I_MPI_HYDRA_NAMESERVER=`hostname`:8000
[c210-008 c:4] make publishbug &amp;amp;&amp;amp; mpiexec.hydra -n 2 publishbug
make: `publishbug' is up to date.
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYD_sock_connect (../../../../../src/pm/i_hydra/libhydra/sock/hydra_sock_intel.c:228): Retrying connection, retry_count=1, retries=0
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYD_sock_connect (../../../../../src/pm/i_hydra/libhydra/sock/hydra_sock_intel.c:243): unable to connect from "c210-008.frontera.tacc.utexas.edu" to "c210-008.frontera.tacc.utexas.edu" (Connection refused)
[mpiexec@c210-008.frontera.tacc.utexas.edu] mpiexec_connect_to_nameserver (../../../../../src/pm/i_hydra/mpiexec/mpiexec_utils.c:425): unable to connect to nameserver
[mpiexec@c210-008.frontera.tacc.utexas.edu] mpiexec_publish_name (../../../../../src/pm/i_hydra/mpiexec/mpiexec_utils.c:499): unable to connect to nameserver
[mpiexec@c210-008.frontera.tacc.utexas.edu] control_cb (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:1484): error publishing service
[mpiexec@c210-008.frontera.tacc.utexas.edu] HYDI_dmx_poll_wait_for_event (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:80): callback returned error status
[mpiexec@c210-008.frontera.tacc.utexas.edu] main (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:2019): error waiting for event&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 17:00:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1270939#M8039</guid>
      <dc:creator>Victor_E_1</dc:creator>
      <dc:date>2021-04-05T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI nameserver</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1271204#M8045</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching us.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; Do I need to start a server daemon?&lt;/P&gt;
&lt;P&gt;-- Yes, We need to start hydra nameserver by using the below command:&lt;/P&gt;
&lt;P&gt;~$ &lt;I&gt;hydra_nameserver &amp;amp;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;--Instead of directly giving port number use MPI_Open_port() to get the port number and use that in MPI_Publish_name()&lt;/P&gt;
&lt;P&gt;--Later You can use the command below :&lt;/P&gt;
&lt;P&gt;~$&amp;nbsp;&lt;I&gt;make publishbug &amp;amp;&amp;amp;&amp;nbsp;I_MPI_HYDRA_NAMESERVER=`hostname` mpiexec.hydra -n 2 publishbug&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a sample code of client and server refer to client.cpp and server.cpp in the below Github repository:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/SteffenSeckler/MPI_Connect_Test" target="_blank" rel="noopener"&gt;https://github.com/SteffenSeckler/MPI_Connect_Test&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Santosh&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 05:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1271204#M8045</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2021-04-07T05:12:14Z</dc:date>
    </item>
    <item>
      <title>Re:Intel MPI nameserver</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1272345#M8063</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Has the solution provided helped? Please let us know if the issue still persists.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2021 11:50:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1272345#M8063</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2021-04-09T11:50:38Z</dc:date>
    </item>
    <item>
      <title>Re:Intel MPI nameserver</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1274072#M8106</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have not heard back from you. We assume that your issue is resolved. If you need any additional information, please submit a new question as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Apr 2021 05:56:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-nameserver/m-p/1274072#M8106</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2021-04-16T05:56:31Z</dc:date>
    </item>
  </channel>
</rss>

