Module device

Module device 

Source
Expand description

2026-09-26: L0: what the GPU reports through NVML: power, the cumulative energy counter, clocks, temperature, clock-event reasons, memory, PCIe and NVLink.

DeviceSource is the I/O seam: NvmlSource reads the driver, and a test supplies its own source or, for the NVML path itself, its own NVML function table (nvml_source_tests). Energy is the driver’s counter (nvmlDeviceGetTotalEnergyConsumption), not an integral of sampled power.

Owner: telemetry. Invariants: a field NvmlSource cannot read is None, never 0.

Structs§

DeviceReading
2026-09-26: One reading. None: the device or driver does not report the field, or reading it failed.
NvmlSource
2026-09-26: NVML-backed source for one device ordinal.

Constants§

CLOCK_EVENT_REASONS
2026-09-26: Named bits of the clocks-event-reasons mask, as nvml.h defines them.
SAMPLE_WORDS
2026-09-26: Words in the encoded form: a presence mask, the sample time, the fields.

Traits§

DeviceSource
2026-09-26: Where device readings come from.