cuda.bindings.nvml.NvlinkTelemetrySample_v1#
- class cuda.bindings.nvml.NvlinkTelemetrySample_v1(size=1)#
Empty-initialize an array of nvmlNvlinkTelemetrySample_v1_t. The resulting object is of length size and of dtype nvlink_telemetry_sample_v1_dtype. If default-constructed, the instance represents a single struct.
- Parameters:
size (int) – number of structs, default=1.
See also
nvmlNvlinkTelemetrySample_v1_t
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)from_buffer(buffer)Create an NvlinkTelemetrySample_v1 instance with the memory from the given buffer.
from_data(data)Create an NvlinkTelemetrySample_v1 instance wrapping the given NumPy array.
from_ptr(intptr_t ptr, size_t size=1, ...[, ...])Create an NvlinkTelemetrySample_v1 instance wrapping the given pointer.
Attributes
link_id[in] LinkId
nvml_returnReturn code for retrieving this sample.
ptrGet the pointer address to the data as Python
int.sample_countNumber of samples users need to allocate.
sample_type[in] Type of telemetry to sample, specified by nvmlNvlinkTelemetrySampleType_t
samplesArray of samples allocated by the user.