LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-06-20 06:42:43


On Sun, 20 Jun 2004, Lei Pan wrote:

> I would like to have a larger tag upper-bound, so I did the following:
>
> int *maxval, flg;
> static int newtag=100000;
> void *pnew;
> MPI_Attr_get(MPI_COMM_WORLD,MPI_TAG_UB,&maxval,&flg);
> printf("TAG UB: %d\n", *maxval);
> pnew = &newtag;
> printf("new TAG UB: %d\n", newtag);
> //MPI_Attr_put(MPI_COMM_WORLD,MPI_TAG_UB, pnew);
> MPI_Comm_set_attr(MPI_COMM_WORLD,MPI_TAG_UB, pnew);
>
> I can get the current tag upper-bound, which is 32767. But both

What version of LAM are you using? Prior to 7.0, the max was 32767.
With 7.0.x, the max is 32767 only if you're using the lamd RPI. All
others support INT_MAX.

> MPI_Attr_put() and MPI_Comm_set_attr() failed with the error:
>
> MPI_Gather: invalid key value (rank 0, MPI_COMM_WORLD)
> Rank (0, MPI_COMM_WORLD): Call stack within LAM:
> Rank (0, MPI_COMM_WORLD): - MPI_Comm_set_attr()
> Rank (0, MPI_COMM_WORLD): - main()
>
> Can anybody please show me the right way of increasing tag upper-bound?

You cannot change the value of this attribute. It is for information only
-- it is telling you what the maximum tag value is, not providing a
mechnaism for changing it.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/