nvmlGetMemoryLimits_v1_t#
-
struct nvmlGetMemoryLimits_v1_t#
Describes the current memory limits that are set for the device.
This structure holds the necessary information that can be used to get the current soft and hard memory limits of a device.
The softLimit is the amount of memory that is guaranteed before allocations may fail due to memory pressure.
The hardLimit is the maximum amount of memory that can be allocated.
This should be cross-referenced with nvmlDeviceGetMemoryInfo_v2 while in that cgroup to see how much memory is actually available to allocate for the device.
No limit is set when softLimit is 0 and hardLimit is NVML_DEVICE_MEMORY_LIMIT_MAX.
Public Members
-
const char *nameSpace#
[in] Full path to sysfs cgroup file name
-
unsigned long long softLimit#
[out] Currently set soft memory limit in Bytes.
-
unsigned long long hardLimit#
[out] Currently set hard memory limit in Bytes.
-
unsigned long long currentUsed#
[out] Currently used memory in Bytes.
-
const char *nameSpace#