nvmlAccountingStats_v2_t#

struct nvmlAccountingStats_v2_t#

Describes accounting statistics (v2) of a process.

Public Members

unsigned int pid#

Process Id of the target process to query stats for.

unsigned int isRunning#

Flag to represent if the process is running (1 for running, 0 for terminated)

unsigned int gpuUtilization#

Percent of time over the process’s lifetime during which one or more kernels was executing on the GPU. Utilization stats just like returned by nvmlDeviceGetUtilizationRates but for the life time of a process (not just the last sample period). Set to NVML_VALUE_NOT_AVAILABLE if nvmlDeviceGetUtilizationRates is not supported.

unsigned int memoryUtilization#

Percent of time over the process’s lifetime during which global (device) memory was being read or written. Set to NVML_VALUE_NOT_AVAILABLE if nvmlDeviceGetUtilizationRates is not supported.

unsigned long long maxMemoryUsage#

Maximum total memory in bytes that was ever allocated by the process. Set to NVML_VALUE_NOT_AVAILABLE if nvmlProcessInfo_t->usedGpuMemory is not supported.

unsigned int sampleCount#

The sample counts since the process starts.

unsigned long long sumGpuUtil#

The sum of process’s GR engine utilization in unit of pct * 100.

unsigned long long sumFbUtil#

The sum of process’s FB bandwidth utilization in unit of pct * 100.

unsigned long long time#

Amount of time in ms during which the compute context was active. The time is reported as 0 if the process is not terminated.

unsigned long long startTime#

CPU Timestamp in usec representing start time for the process.