cuda.bindings.nvml.SetMemoryLimits_v1#

class cuda.bindings.nvml.SetMemoryLimits_v1#

Empty-initialize an instance of nvmlSetMemoryLimits_v1_t.

See also

nvmlSetMemoryLimits_v1_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

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

from_data(data)

Create an SetMemoryLimits_v1 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an SetMemoryLimits_v1 instance wrapping the given pointer.

Attributes

hard_limit

[in] 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

[in] Soft memory limit in Bytes.