NVML API Reference Guide (PDF) - vR510 (older) - Last updated January 30, 2022 - Send Feedback

3.24. nvmlMemory_v2_t Struct Reference

[Device Structs]

Memory allocation information for a device (v2).

Version 2 adds versioning for the struct and the amount of system-reserved memory as an output.

Note:

The nvmlMemory_v2_t::used amount also includes the nvmlMemory_v2_t::reserved amount.

Public Variables

unsigned long long  free
Unallocated device memory (in bytes).
unsigned long long  reserved
Device memory (in bytes) reserved for system use (driver or firmware).
unsigned long long  total
Total physical device memory (in bytes).
unsigned long long  used
Allocated device memory (in bytes). Note that the driver/GPU always sets aside a small amount of memory for bookkeeping.
unsigned int  version
Structure format version (must be 2).

Variables

unsigned long long nvmlMemory_v2_t::free [inherited]

Unallocated device memory (in bytes).

unsigned long long nvmlMemory_v2_t::reserved [inherited]

Device memory (in bytes) reserved for system use (driver or firmware).

unsigned long long nvmlMemory_v2_t::total [inherited]

Total physical device memory (in bytes).

unsigned long long nvmlMemory_v2_t::used [inherited]

Allocated device memory (in bytes). Note that the driver/GPU always sets aside a small amount of memory for bookkeeping.

unsigned int nvmlMemory_v2_t::version [inherited]

Structure format version (must be 2).


NVML API Reference Guide (PDF) - vR510 (older) - Last updated January 30, 2022 - Send Feedback