Open tubzby opened 8 months ago
Some observations:
Here's the relevant nvtop code. Looks pretty different: https://github.com/Syllo/nvtop/blob/0316ce19581c3d8543cf6aa312d1569c56ca754f/src/extract_gpuinfo_nvidia.c#L761
Another observation: Processes appear to only be returned if they are running. An idle process doesn't end up in the array, unless it was non-idle very recently. This accounts for what happens if I set the timestamp -- it reduces the horizon.
Also means that swallowing the error (and returning []) should be a valid workaround.
cargo run with error:
My device:
It's quite strange here, the first call to
nvmlDeviceGetProcessUtilization
to retrieve proccess count returned79
in my situation which should be0
.