Hello<div><br></div><div>I am trying to start an mpi server program on a particular port (so that other programs might connect later).</div><div>I am using MPI_Info to setport key-value, like this</div><div><br></div><div>
<div> MPI_Info info;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(MPI_SUCCESS!=MPI_Info_create(&info))</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("err");</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>MPI_Info_set(info,"port","11555");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>...</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(MPI_SUCCESS!=MPI_Open_port(info, port_name))</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("err");</div>
</div><div> ...</div><div><div> MPI_Info_get(info,"port",0,buf1,&len);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf("%s\n",buf);</div><div> ...</div>
<div> printf("server available at %s\n",port_name);</div></div><div><br></div><div>And server opens a random port every time, perhaps i am doing something wrong (i must be missing something). :</div><div>
<br></div><div>server available at tag#0$description#192.168.1.4$port#60184$ifname#192.168.1.4$</div><div><br></div><div>Any advice is greatly welcome!</div><div><br></div><div>Eugene</div>