cuda.bindings.nvml.device_get_accounting_pids#

cuda.bindings.nvml.device_get_accounting_pids(intptr_t device)#

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

For Kepler ™️ or newer fully supported devices. To query the number of processes under Accounting Mode, call this function with *count = 0 and pids=NULL. The return code will be NVML_ERROR_INSUFFICIENT_SIZE with an updated count value indicating the number of processes. For more details see nvmlDeviceGetAccountingStats.

Parameters:

device (intptr_t) – The identifier of the target device.

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

nvmlDeviceGetAccountingPids