[mpiwg-tools] Problem of MPI_T_PVAR_GET_INDEX

Junchao Zhang jczhang at mcs.anl.gov
Mon Oct 7 13:31:16 CDT 2013


I noticed there is a proposal to query cvar/pvar/category index by their
name. The one for pvar is questionable:
  MPI_T_PVAR_GET_INDEX(name, pvar_index)

Since the Standard reads (p577)

*  Advice to implementors.* Groups of variables that belong closely
together, but have different classes, can have the same name. This choice
is useful, e.g., to refer to multiple variables that describe a single
resource (like the level, the total size, as well as high and low
watermarks). (End of advice to implementors.)

It implies pvar names are not unique among pvar classes.  So we need to
require unique pvar names, or add a pvar class argument to
MPI_T_PVAR_GET_INDEX.
--Junchao Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpi-forum.org/pipermail/mpiwg-tools/attachments/20131007/2ed3cd11/attachment.html>


More information about the mpiwg-tools mailing list