NVML API Reference Guide (PDF) - vR610 (older) - Last updated May 26, 2026 - Send Feedback

6.2. nvmlAccountingStats_v2_t Struct Reference

[Accounting Statistics]

Describes accounting statistics (v2) of a process.

Public Variables

unsigned int  gpuUtilization
unsigned int  isRunning
Flag to represent if the process is running (1 for running, 0 for terminated).
unsigned long long  maxMemoryUsage
unsigned int  memoryUtilization
unsigned int  pid
Process Id of the target process to query stats for.
unsigned int  sampleCount
The sample counts since the process starts.
unsigned long long  startTime
CPU Timestamp in usec representing start time for the process.
unsigned long long  sumFbUtil
The sum of process's FB bandwidth utilization in unit of pct * 100.
unsigned long long  sumGpuUtil
The sum of process's GR engine utilization in unit of pct * 100.
unsigned long long  time

Variables

unsigned int nvmlAccountingStats_v2_t::gpuUtilization [inherited]

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 nvmlAccountingStats_v2_t::isRunning [inherited]

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

unsigned long long nvmlAccountingStats_v2_t::maxMemoryUsage [inherited]

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 nvmlAccountingStats_v2_t::memoryUtilization [inherited]

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 int nvmlAccountingStats_v2_t::pid [inherited]

Process Id of the target process to query stats for.

unsigned int nvmlAccountingStats_v2_t::sampleCount [inherited]

The sample counts since the process starts.

unsigned long long nvmlAccountingStats_v2_t::startTime [inherited]

CPU Timestamp in usec representing start time for the process.

unsigned long long nvmlAccountingStats_v2_t::sumFbUtil [inherited]

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

unsigned long long nvmlAccountingStats_v2_t::sumGpuUtil [inherited]

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

unsigned long long nvmlAccountingStats_v2_t::time [inherited]

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


NVML API Reference Guide (PDF) - vR610 (older) - Last updated May 26, 2026 - Send Feedback