cuda.core.system.FieldValue#

class cuda.core.system.FieldValue(field_value: nvml.FieldValue)#

Represents the data from a single field value.

Use Device.get_field_values() to get multiple field values at once.

Methods

__init__(*args, **kwargs)#

Attributes

field_id#

FieldId

The field ID.

Type:

FieldValue.field_id

latency_usec#

int

How long this field value took to update (in usec) within NVML. This may be averaged across several fields that are serviced by the same driver call.

Type:

FieldValue.latency_usec

scope_id#

int

The scope ID.

Type:

FieldValue.scope_id

timestamp#

int

The CPU timestamp (in microseconds since 1970) at which the value was sampled.

Type:

FieldValue.timestamp

value#

int | float

The field value.

Raises:

cuda.core.system.NvmlError – If there was an error retrieving the field value.

Type:

FieldValue.value