[mpiwg-tools] Continuos counter / timer

Martin Schulz schulz6 at llnl.gov
Sat Sep 7 13:43:08 CDT 2013

Hi Junchoa,

That one we actually specified, although perhaps not in the best/easiest way. Before the table, the standard has the following statement:

The starting value is the value that is assigned to the variable the first time that it is used or whenever it is reset. 

The starting value for a counter is defined as 0. Therefore, the first time you access it, it should return 0. Also, the value can and should return different values in different sessions (relative to when the counter was read first). The idea that we had is that each session maintains a base value that is subtracted from a continuous counter on each read.

Hope this make sense,


On Sep 6, 2013, at 3:21 PM, Junchao Zhang <jczhang at mcs.anl.gov> wrote:

> Hello,
>    If a pvar is a continuos counter (though I think this case is strange),  once a handle for it is allocated, what is its value if we read it immediately?  Should it be 1) zero or 2) the current value (state) of this variable?
>    I guess for continuos pvars, all sessions should read the same value if read at the same time.  So I think 2) is more reasonable.  But the Standard says "the starting value for variables of this class is 0". 
>    Any comments?  Thanks.
> -- Junchao Zhang
> _______________________________________________
> mpiwg-tools mailing list
> mpiwg-tools at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-tools

More information about the mpiwg-tools mailing list