<?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 James, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986245#M3573</link>
    <description>James,
My example was snipped out so the output does not match excatly but it is attached.</description>
    <pubDate>Tue, 08 Jan 2013 21:07:03 GMT</pubDate>
    <dc:creator>Dave_K_</dc:creator>
    <dc:date>2013-01-08T21:07:03Z</dc:date>
    <item>
      <title>problem with mpi_comm_accept</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986237#M3565</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to set up a server client pair that establishes a connection (after being launched independently) using mpi_comm_accept and connect. I successfully have the server wait for a connection request using MPI_Comm_accept.&amp;nbsp; The client successfully connects to using MPI_Comm_connect.&amp;nbsp; &amp;nbsp;Both the server and the client return without any error but the a negative handle is returned in 'newcomm' to both the server and the client.&amp;nbsp; I launch both using mpiexec and have mpd running.&lt;/P&gt;
&lt;P&gt;I cannot figure out what is wrong and it is probably something simple.&amp;nbsp; Any ideas?&lt;/P&gt;
&lt;P&gt;SERVER:&lt;/P&gt;
&lt;P&gt;Integer*4 ierr,rt_gang_comm&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;call MPI_OPEN_PORT(MPI_INFO_NULL,portA,ierr)&lt;/P&gt;
&lt;P&gt;write(contape,*) 'Gang Master port = ' // trim(portA)&lt;/P&gt;
&lt;P&gt;… server writes the name to a file&lt;/P&gt;
&lt;P&gt;call MPI_COMM_ACCEPT(portA,MPI_INFO_NULL,0,MPI_COMM_SELF,rt_gang_comm, ierr)&lt;/P&gt;
&lt;P&gt;if (ierr) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stop ‘serever problem’&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;&amp;nbsp; write(contape,*) 'MPI_COMM_WORLD = ',MPI_COMM_WORLD,' rt_gang_com = ',rt_gang_comm&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;call MPI_Bcast(i_rec,n_i_s,MPI_INTEGER4,id_mpi_rank,rt_gang_comm, ierr)&lt;/P&gt;
&lt;P&gt;if (ierr)then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; callMPI_ERROR_STRING(ierr,errs,err_len,ierr1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; stop&lt;/P&gt;
&lt;P&gt;endif&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SERVER OUTPUT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gang Master port = tag#0$rdma_port0#5124$rdma_host0#2:0:0:192:168:11:220:0:0:0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;0:0:0:0:0$&lt;/P&gt;
&lt;P&gt;MPI_COMM_WORLD =&amp;nbsp;&amp;nbsp; 1140850688&amp;nbsp; rt_gang_com =&amp;nbsp; -2080374784&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLIENT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Integer*4 ierr,intercom&lt;/P&gt;
&lt;P&gt;… client reads port name from the server written file&lt;/P&gt;
&lt;P&gt;write(contape,*)'Opening port', trim(portA)&lt;/P&gt;
&lt;P&gt;call MPI_COMM_CONNECT(portA, MPI_INFO_NULL, 0, MPI_COMM_WORLD, intercomm, ierr)&lt;/P&gt;
&lt;P&gt;if (ierr) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp; stop ‘client problem’&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;&amp;nbsp; print*,"MPI_COMM_WORLD=",MPI_COMM_WORLD,"intercomm=", intercom&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLIENT OUTOPUT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening port &amp;nbsp;tag#0$rdma_port0#5124$rdma_host0#2:0:0:192:168:11:220:0:0:0:0:0:0:0:0$&lt;/P&gt;
&lt;P&gt;MPI_COMM_WORLD=&amp;nbsp; 1140850688 intercomm= -2080374783&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A subsequent broadcasr hangs.&amp;nbsp; They are trying to communicate over a communicator that differs by one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot find anything around that can seem to help so I would appreciate even ideas to try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:37:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986237#M3565</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-07T19:37:55Z</dc:date>
    </item>
    <item>
      <title>A few particulars:</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986238#M3566</link>
      <description>A few particulars:

ifort version 12.1.0
CentOS release 5.7
impi/4.0.3/lib64</description>
      <pubDate>Mon, 07 Jan 2013 19:57:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986238#M3566</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-07T19:57:14Z</dc:date>
    </item>
    <item>
      <title>If you should happen to use</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986239#M3567</link>
      <description>If you should happen to use an architecture option -xHost on AVX hardware, or one including AVX, I don't know whether it will work, since CentOS 5.7 doesn't support AVX.</description>
      <pubDate>Mon, 07 Jan 2013 22:57:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986239#M3567</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-01-07T22:57:59Z</dc:date>
    </item>
    <item>
      <title>Thanks for you input Tim.  I</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986240#M3568</link>
      <description>Thanks for you input Tim.  I was compiling with -xSSE4.2 because it helped with optimization (at some point).  I removed it and recompiled with defaults for both the client and server and still end up with a negative pointer.</description>
      <pubDate>Tue, 08 Jan 2013 13:44:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986240#M3568</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Are there any other ideas out</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986241#M3569</link>
      <description>Are there any other ideas out there?  I am so stumped.</description>
      <pubDate>Tue, 08 Jan 2013 16:54:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986241#M3569</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Hi Dave,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986242#M3570</link>
      <description>Hi Dave,

I've tested the basic functionality of your program, and it appears to work even with a negative value for the communicator.  That is simply a handle to the communicator, and as long as the two have the same communicator, the connection should work.

From the server side:

[plain]
$ mpirun -n 1 ./server
 MPI_COMM_WORLD =   1140850688  newcomm =  -2080374784
 value =           25
$ cat portname.txt
 tag#0$rdma_port0#25033$rdma_host0#2:0:0:36:101:26:30:0:0:0:0:0:0:0:0$
[/plain]

And the client side:
[plain]
$ mpirun -n 1 ./client
 MPI_COMM_WORLD =   1140850688  newcomm =  -2080374784
 value =           25
[/plain]

If you're still having problems, please run with I_MPI_DEBUG=5 and attach the output.

Sincerely,
James Tullos
Technical Consulting Engineer
Intel® Cluster Tools</description>
      <pubDate>Tue, 08 Jan 2013 17:04:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986242#M3570</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2013-01-08T17:04:38Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986243#M3571</link>
      <description>James,
When I run it the negative communicators differ by one as reflected in the output.
Both the client and server have valid communicators but the do not match so the each hange on a broadcast.
Dave</description>
      <pubDate>Tue, 08 Jan 2013 20:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986243#M3571</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T20:15:05Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986244#M3572</link>
      <description>James,
My example was snipped out so the output does not match excatly but it is attached.</description>
      <pubDate>Tue, 08 Jan 2013 20:38:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986244#M3572</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T20:38:20Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986245#M3573</link>
      <description>James,
My example was snipped out so the output does not match excatly but it is attached.</description>
      <pubDate>Tue, 08 Jan 2013 21:07:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986245#M3573</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T21:07:03Z</dc:date>
    </item>
    <item>
      <title>James</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986246#M3574</link>
      <description>James
 attached is debug=10
Dave</description>
      <pubDate>Tue, 08 Jan 2013 21:20:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986246#M3574</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T21:20:43Z</dc:date>
    </item>
    <item>
      <title>James</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986247#M3575</link>
      <description>James
 attached is debug=10
Dave</description>
      <pubDate>Tue, 08 Jan 2013 21:20:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986247#M3575</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Don't think my last</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986248#M3576</link>
      <description>Don't think my last attachment made it</description>
      <pubDate>Tue, 08 Jan 2013 21:22:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986248#M3576</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-08T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Hi Dave,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986249#M3577</link>
      <description>Hi Dave,

I don't see anything immediately wrong in your output (other than the mismatched communicator handle).  Can you try using the current version of the Intel® MPI Library (Version 4.1)?  Can you send me a reproducer code to test here?

Sincerely,
James Tullos
Technical Consulting Engineer
Intel® Cluster Tools</description>
      <pubDate>Wed, 09 Jan 2013 16:49:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986249#M3577</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2013-01-09T16:49:44Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986250#M3578</link>
      <description>James,
I sent the perfect test case to you but not have heard back?
Dave</description>
      <pubDate>Thu, 10 Jan 2013 15:41:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986250#M3578</guid>
      <dc:creator>Dave_K_</dc:creator>
      <dc:date>2013-01-10T15:41:02Z</dc:date>
    </item>
    <item>
      <title>Hi Dave,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986251#M3579</link>
      <description>Hi Dave,

I have not received the test case.  Did you send it via private message?  How large is the file?

Sincerely,
James Tullos
Technical Consulting Engineer
Intel® Cluster Tools</description>
      <pubDate>Thu, 10 Jan 2013 19:40:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/problem-with-mpi-comm-accept/m-p/986251#M3579</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2013-01-10T19:40:26Z</dc:date>
    </item>
  </channel>
</rss>

