[mpich-discuss] open a server on particular port
Michael Raymond
mraymond at sgi.com
Thu Jan 27 06:52:01 CST 2011
IP ports and MPI-2 ports are completely different things. See
MPI_Publish_name().
Eugene N wrote:
> Hello
>
> I am trying to start an mpi server program on a particular port (so that
> other programs might connect later).
> I am using MPI_Info to setport key-value, like this
>
> MPI_Info info;
> if(MPI_SUCCESS!=MPI_Info_create(&info))
> printf("err");
> ...
> MPI_Info_set(info,"port","11555");
> ...
>
> if(MPI_SUCCESS!=MPI_Open_port(info, port_name))
> printf("err");
> ...
> MPI_Info_get(info,"port",0,buf1,&len);
> printf("%s\n",buf);
> ...
> printf("server available at %s\n",port_name);
>
> And server opens a random port every time, perhaps i am doing something
> wrong (i must be missing something). :
>
> server available at
> tag#0$description#192.168.1.4$port#60184$ifname#192.168.1.4$
>
> Any advice is greatly welcome!
>
> Eugene
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
--
Michael A. Raymond
Message Passing Toolkit Team
Silicon Graphics Inc
(651) 683-3434
More information about the mpich-discuss
mailing list