Newsgroups: comp.parallel.mpi
From: Brandon Mitchell <bhmit1@cs.wm.edu>
Reply-To: bhmit1@cs.wm.edu
Subject: Re: Context in mpi
In-Reply-To: <75tq80$pt86@puligny.idt.cdc.fr>
Message-Id: <Pine.LNX.4.03.9812272222030.2893-100000@tx>
References: <Pine.LNX.4.03.9812231612010.8727-100000@tx>
    <75tq80$pt86@puligny.idt.cdc.fr>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: QUOTED-PRINTABLE
Date: Mon, 28 Dec 1998 03:29:51 GMT


[my news server is back up so I'll publically reply now]

Hi Alain,=20
   My code has two sections, one that checks the buffers to see if I've
already received a valid message, and another to receive a message from
anyone who isn't in the buffer and is in the comm that the user passes me. =
=20
My problem is checking in the 1st part (buffer check).  I need to see if a
source that provided the message in my buffer is in the passed comm. =20
Is that possible in MPI (specifically MPICH)?  I.e. I need an=20
"int MPI_Comm_contains_source (comm, src)" function.

TIA,
Brandon

+---                                                              ---+
| Brandon Mitchell * bhmit1@mail.wm.edu * http://bhmit1.home.ml.org/ |
|  Sometimes you have to release software with bugs. - MS Recruiter  |

On Thu, 24 Dec 1998, Alain Coetmeur wrote:

>=20
> Brandon Mitchell a =E9crit dans le message ...
> >I'm building a layer above mpi as part of a research project.  It involv=
es
> >me keeping a buffer for up to one message from each host.  I then pass t=
he
> >message from the buffer to the users process that calls my version of
> >MPI_Recv.
>=20
> > I'd like to see what sources are in the comm that is passed to
> >my verion of MPI_Recv.
>=20
> I don't understand your intentions.
> if you want to know from where come a message,
> then the MPI_Status filled by MPI_Recv contain
> informations like the rank of the sender relative to the
> MPI_Communicator you use.
[ ... snipped ]

