rahulgarg

calExtGetCounter : Negative values for cache hit rates??

Discussion created by rahulgarg on Sep 4, 2008
Latest reply on Sep 4, 2008 by rahulgarg
Getting weird values from cache hit rate counters

I am trying to determine the cache hit rate on on one of my kernels. To create, begin, end, get and destroy counters I am following the example in perf_counters.cpp.
However, when I get the counter value (the counter being CAL_COUNTER_CACHE_HIT_RATE), I get a negative value in some cases.

Any pointers to what might be wrong?

Outcomes