Skip to main content

Crate concerto_gpu

Crate concerto_gpu 

Source
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 the nvml feature and only available on Linux. See the nvml module 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 GpuMonitor used for testing and development.
monitor
The GpuMonitor trait and its associated snapshot and error types.