gputop icon indicating copy to clipboard operation
gputop copied to clipboard

Add an option to print out raw counters in gputop-wrapper

Open djdeath opened this issue 7 years ago • 2 comments

This would be useful for debugging purposes.

djdeath avatar Feb 22 '18 13:02 djdeath

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!

zzzunes avatar Jul 11 '18 21:07 zzzunes

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

djdeath avatar Jul 17 '18 13:07 djdeath