cuda.bindings.nvml.FieldValue#

class cuda.bindings.nvml.FieldValue(size=1)#

Empty-initialize an array of nvmlFieldValue_t.

The resulting object is of length size and of dtype field_value_dtype. If default-constructed, the instance represents a single struct.

Parameters:

size (int) – number of structs, default=1.

See also

nvmlFieldValue_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

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

from_data(data)

Create an FieldValue instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, size_t size=1, ...)

Create an FieldValue instance wrapping the given pointer.

Attributes

field_id

Union[~_numpy.uint32, int]:

latency_usec

Union[~_numpy.int64, int]:

nvml_return

Union[~_numpy.int32, int]:

ptr

Get the pointer address to the data as Python int.

scope_id

Union[~_numpy.uint32, int]:

timestamp

Union[~_numpy.int64, int]:

value

value_dtype:

value_type

Union[~_numpy.int32, int]: