cuda.bindings.nvml.VgpuPlacementList_v2#

class cuda.bindings.nvml.VgpuPlacementList_v2#

Empty-initialize an instance of nvmlVgpuPlacementList_v2_t.

See also

nvmlVgpuPlacementList_v2_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

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

from_data(data)

Create an VgpuPlacementList_v2 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an VgpuPlacementList_v2 instance wrapping the given pointer.

Attributes

mode

The vGPU mode.

placement_ids

Placement IDs for the vGPU type.

placement_size

The number of slots occupied by the vGPU type.

ptr

Get the pointer address to the data as Python int.

version

The version number of this struct.