Returns the % of utilization of the kernels during the last sample https://docs.nvidia.com/deploy/nvml-api/structnvmlUtilization__t.html#structnvmlUtilization__t
(self)
| 104 | return None |
| 105 | |
| 106 | def _get_gpu_utilization(self): |
| 107 | """Returns the % of utilization of the kernels during the last sample |
| 108 | https://docs.nvidia.com/deploy/nvml-api/structnvmlUtilization__t.html#structnvmlUtilization__t |
| 109 | """ |
| 110 | return pynvml.nvmlDeviceGetUtilizationRates(self.handle).gpu |
| 111 | |
| 112 | def _get_compute_mode(self) -> int: |
| 113 | """Returns the compute mode of the GPU |
nothing calls this directly
no outgoing calls
no test coverage detected