[mpich-discuss] MPI_Open_port with a predefined port

Rajeev Thakur thakur at mcs.anl.gov
Sun Mar 2 22:58:24 CST 2008


I don't know if this will work, but try setting the environment variable
MPICH_PORT_RANGE to the same range as the port you want, before running
mpiexec. For example,

setenv MPICH_PORT_RANGE 12345:12345 
mpiexec -n 1 server

That should cause all MPI communication on the server to use port 12345.

Rajeev


> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Julien Charton
> Sent: Sunday, March 02, 2008 12:04 PM
> To: mpich-discuss at mcs.anl.gov
> Subject: [mpich-discuss] MPI_Open_port with a predefined port
> 
> 
> dear all,
> I would like to use MPICH2 for a client-server application, 
> and I need servers to listen to a predefined TCP/IP port.
> I tried the "ip_port" key with MPI_Open_port, but I still get 
> random-like port numbers.
> 
> Is the "ip_port" key taken into account by MPICH2 ?
> There is apparently no reference to it in the source tree...
> 
> cheers,
> Julien
> 
> 




More information about the mpich-discuss mailing list