cuda.bindings.nvml.GetMemoryLimits_v1#

class cuda.bindings.nvml.GetMemoryLimits_v1#

Empty-initialize an instance of nvmlGetMemoryLimits_v1_t.

See also

nvmlGetMemoryLimits_v1_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

Create an GetMemoryLimits_v1 instance with the memory from the given buffer.

from_data(data)

Create an GetMemoryLimits_v1 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an GetMemoryLimits_v1 instance wrapping the given pointer.

Attributes

current_used

[out] Currently used memory in Bytes.

hard_limit

[out] Currently set hard memory limit in Bytes.

name_space

[in] Full path to sysfs cgroup file name

ptr

Get the pointer address to the data as Python int.

soft_limit

[out] Currently set soft memory limit in Bytes.