cuda.bindings.nvml.vgpu_instance_get_accounting_stats#
- cuda.bindings.nvml.vgpu_instance_get_accounting_stats(
- unsigned int vgpu_instance,
- unsigned int pid,
Queries process’s accounting stats.
For Maxwell ™️ or newer fully supported devices. Accounting stats capture GPU utilization and other statistics across the lifetime of a process, and can be queried during life time of the process or after its termination. The time field in
nvmlAccountingStats_tis reported as 0 during the lifetime of the process and updated to actual running time after its termination. Accounting stats are kept in a circular buffer, newly created processes overwrite information about old processes. SeenvmlAccountingStats_tfor description of each returned metric. List of processes that can be queried can be retrieved fromnvmlVgpuInstanceGetAccountingPids.- Parameters:
vgpu_instance (unsigned int) – The identifier of the target vGPU instance.
pid (unsigned int) – Process Id of the target process to query stats for.
- Returns:
- Reference in which to return the process’s
accounting stats.
- Return type:
nvmlAccountingStats_t
Note
Accounting Mode needs to be on. See
nvmlVgpuInstanceGetAccountingMode.Note
Only compute and graphics applications stats can be queried. Monitoring applications stats can’t be queried since they don’t contribute to GPU utilization.
Note
In case of pid collision stats of only the latest process (that terminated last) will be reported.
See also
nvmlVgpuInstanceGetAccountingStats