Add an option to print out raw counters in gputop-wrapper
This would be useful for debugging purposes.
Hello, I would like to try approaching this issue. What do you specifically mean by raw counters? I can kind of see the flow printing the counters of context in gputop-wrapper-main, but I'm not sure how the process is obtaining the metric counters / where to fetch the raw counters. Do you know where in the source I could look to learn more about this? Thank you!
Before the counters are printed out on the console, they have to be computed. There are equations that compute their values using variables describing features of the system as well as "raw counters" meaning the values provided by the hardware.
For example the percentage of busyness of the execution unit : https://github.com/rib/gputop/blob/master/data/oa-sklgt3.xml#L23
Is computed using the following equation (reverse polish notation) : A 7 READ $EuCoresTotalCount UDIV 100 UMUL $GpuCoreClocks FDIV
What this feature is about is printing out the raw counters feeding that equation, in this case it's counter A7 : A 7 READ
Those counters are accumulated here : https://github.com/rib/gputop/blob/master/lib/gputop-oa-counters.h#L63