cuda.bindings.nvml.vgpu_instance_get_accounting_pids#

cuda.bindings.nvml.vgpu_instance_get_accounting_pids(unsigned int vgpu_instance)#

Queries list of processes running on vGPU that can be queried for accounting stats. The list of processes returned can be in running or terminated state.

For Maxwell ™️ or newer fully supported devices. To just query the maximum number of processes that can be queried, call this function with *count = 0 and pids=NULL. The return code will be NVML_ERROR_INSUFFICIENT_SIZE, or NVML_SUCCESS if list is empty. For more details see nvmlVgpuInstanceGetAccountingStats.

Parameters:

vgpu_instance (unsigned int) – The identifier of the target vGPU instance.

Returns:

Reference in which to return list of process ids.

Return type:

unsigned int

Note

In case of PID collision some processes might not be accessible before the circular buffer is full.

See also

nvmlVgpuInstanceGetAccountingPids