cuda.bindings.nvml.PerfMetricControllerSample#
- class cuda.bindings.nvml.PerfMetricControllerSample(size=1)#
Empty-initialize an array of nvmlPerfMetricControllerSample_t. The resulting object is of length size and of dtype perf_metric_controller_sample_dtype. If default-constructed, the instance represents a single struct.
- Parameters:
size (int) – number of structs, default=1.
See also
nvmlPerfMetricControllerSample_t
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)from_buffer(buffer)Create an PerfMetricControllerSample instance with the memory from the given buffer.
from_data(data)Create an PerfMetricControllerSample instance wrapping the given NumPy array.
from_ptr(intptr_t ptr, size_t size=1, ...[, ...])Create an PerfMetricControllerSample instance wrapping the given pointer.
Attributes
controller_typeNVML_PERF_METRICS_CONTROLLER_TYPE_DLPPC_2X or NVML_PERF_METRICS_CONTROLLER_TYPE_PFPP_1X.
data_Union containing controller-specific data.
ptrGet the pointer address to the data as Python
int.