Newsgroups: comp.parallel.mpi
From: "Philip L. Hallstrom" <hallstro>
Subject: Getting IO Rank attribute
Organization: Argonne National Laboratory
Date: 17 Jul 1995 16:23:43 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3ue2qf$q4v@milo.mcs.anl.gov>

I want to find out what the value of the IO Rank attribute is an a particular
process.  Page 191 of the standard reads; "The value of these attributes can be
inquired by using the function MPI_ATTR_GET described in Chapter 5.  I am
looking at the definition of MPI_Attr_get, but I cannot figure out what I
should use for the third parameter.  This is what I have:

int flag;
MPI_Get_attr(MPI_COMM_WORLD, MPI_IO, ?, &flag);

The prototype says that the third parameter should be type "void**".  Do I just
send in "(void **)&&val" where val is an int?  I don't know.  I appreciate any
help someone can give.

Philip L. Hallstrom


