AMD GPU Power usage is 0
shawarden opened this issue · comments
Awesome work even with AMD gpus, which is depressingly rare.
Unfortunately it doesn't pick up power usage on (some?/my) AMD cards though, and while rocm-smi
does not seem to provide that information, it is readily available on linux at /sys/class/drm/card?/device/hwmon/hwmon?/power?_average
with .../power?_cap
being the normal upper limit and .../power?_cap_max
being the OC upper limit.
Presumably it would be there for Nvidia cards as well, but I can't test that.
I'm pretty sure this is an issue with ROCm SMI, I could only test with an iGPU but I can reproduce the issue. Either way there's plans to use the kernel DRM subsystem for Intel GPUs and as a general fallback, so this'll be fixed in the future if RSMI doesn't address it.