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?