[mpich-discuss] MPI_Comm: Accept and connect comunicators

Rajeev Thakur thakur at mcs.anl.gov
Tue Mar 18 11:52:49 CDT 2008


If the clients are all independent and have no relation to each other, you
can use MPI_COMM_SELF on the client side. If the clients form a single
parallel job, you want to use comm_world. Similarly, if you have a group of
servers wanting to jointly establish connection with one or more clients,
use comm_world on the servers; else use comm_self.

Rajeev

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of 
> Francisco Javier García Blas
> Sent: Tuesday, March 18, 2008 7:10 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [mpich-discuss] MPI_Comm: Accept and connect comunicators
> 
> Hi all,
> 
> I am writing a simple test that use MPI_Comm_Accept/Connect 
> primitives. 
> What is the difference between using MPI_COMM_WORLD or 
> MPI_COMM_SELF in this primitives?  The aim of the test 
> consists of creating communicators to connect each of clients 
> to all servers and vice versa.
> 
> Thanks a lot.
> Javier
> 
> --
> --------------------------------------------------
> Francisco Javier García Blas
> Computer Architecture, Communications and Systems Area.
> Computer Science Department. UNIVERSIDAD CARLOS III DE MADRID 
> Avda. de la Universidad, 30
> 28911 Leganés (Madrid), SPAIN
> e-mail: fjblas at arcos.inf.uc3m.es
>         fjblas at inf.uc3m.es
> Phone:(+34) 916249104
> FAX: (+34) 916249129
> --------------------------------------------------
> 
> 




More information about the mpich-discuss mailing list