Newsgroups: comp.parallel.mpi
From: hart@area51.fsl.noaa.gov (Leslie Hart)
Subject: Re: Multiple TAG in Recv.
Organization: National Oceanic and Atmospheric Administration, Boulder
Date: 18 May 1998 14:48:54 GMT
Message-ID: <6jphom$83h$1@mwrns.noaa.gov>

You might want to duplicate MPI_COMM_WORLD (MPI_Comm_dup). With this,
you can only use TAG1 and TAG2 with that communicator and MPI_ANY_SOURCE
will accomplish what you want. This was part of the reasoning for partitioning
the tag space with communicators. If this doesn't appeal to you, I think your
last resort is to IPROBE for the two tags in a loop (arrgh) and then receive
whichever tag you discovered was available.

Personally, I think the COMM_DUP is a better solution.

Regards,
Leslie Hart (hart@fsl.noaa.gov)

In article <3560389F.333@gs.com>, Gregory Zeleny <unspecified@gs.com> writes:
> hi!
> I'm using LAM 6.0 and have a question:
> 
> Can  I do something like 
> 
> Recv(0,0,MPI_ANY_SOURCE, TAG1|TAG2, &status, MPI_COMM_WORLD)
> Here I'm trying to get messages with 2 and only 2 specified tags - TAG1
> or TAG2. MPI_ANY_TAG doesn't fit in my case.
> If not, any ideas how can I implementthis idea?

