nvmlMemory_v2_t#

struct nvmlMemory_v2_t#

Memory allocation information for a device (v2).

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

Public Members

unsigned int version#

Structure format version (must be 2)

unsigned long long total#

Total physical device memory (in bytes)

unsigned long long reserved#

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

unsigned long long free#

Unallocated device memory (in bytes)

unsigned long long used#

Allocated device memory (in bytes).