Expand description
§concerto-gpu
GPU monitoring abstractions for Concerto.
This crate provides the GpuMonitor trait, which abstracts over the source
of GPU telemetry (NVML, mock, or anything else), and two implementations:
MockGpuMonitor— a configurable in-memory monitor used in all tests and for development without real GPU hardware.NvmlMonitor— a real NVML-backed monitor, gated behind thenvmlfeature and only available on Linux. See thenvmlmodule for platform caveats.
The trait is deliberately minimal: callers drive snapshots from the outside, which keeps the implementation trivially testable and leaves caching/interval policy to higher layers.
Re-exports§
pub use health::classify_health;pub use health::HealthThresholds;pub use mock::MockGpuMonitor;pub use monitor::GpuMonitor;pub use monitor::GpuMonitorError;pub use monitor::GpuSnapshot;
Modules§
- health
- Pure health classification from a raw
GpuSnapshot. - mock
- An in-memory, configurable
GpuMonitorused for testing and development. - monitor
- The
GpuMonitortrait and its associated snapshot and error types.