fixed comments
This commit is contained in:
@@ -2,21 +2,21 @@ use anyhow::Result;
|
||||
use nvml_wrapper::Nvml;
|
||||
use std::error::Error;
|
||||
|
||||
//! # GPU Hardware Module
|
||||
//!
|
||||
//! This module provides GPU information collection for WatcherAgent, including load, temperature, and VRAM statistics.
|
||||
//!
|
||||
//! ## Responsibilities
|
||||
//! - **GPU Detection:** Identifies GPU model and capabilities.
|
||||
//! - **Metric Collection:** Queries GPU load, temperature, and VRAM usage using NVML (NVIDIA only).
|
||||
//! - **Error Handling:** Graceful fallback if GPU or NVML is unavailable.
|
||||
//!
|
||||
//! ## Units
|
||||
//! - `current_load`: GPU usage as a percentage (**0.0–100.0**)
|
||||
//! - `current_temp`: GPU temperature in **degrees Celsius (°C)**
|
||||
//! - `vram_total`: Total VRAM in **megabytes (MB)**
|
||||
//! - `vram_used`: Used VRAM in **megabytes (MB)**
|
||||
//!
|
||||
/// # GPU Hardware Module
|
||||
///
|
||||
/// This module provides GPU information collection for WatcherAgent, including load, temperature, and VRAM statistics.
|
||||
///
|
||||
/// ## Responsibilities
|
||||
/// - **GPU Detection:** Identifies GPU model and capabilities.
|
||||
/// - **Metric Collection:** Queries GPU load, temperature, and VRAM usage using NVML (NVIDIA only).
|
||||
/// - **Error Handling:** Graceful fallback if GPU or NVML is unavailable.
|
||||
///
|
||||
/// ## Units
|
||||
/// - `current_load`: GPU usage as a percentage (**0.0–100.0**)
|
||||
/// - `current_temp`: GPU temperature in **degrees Celsius (°C)**
|
||||
/// - `vram_total`: Total VRAM in **megabytes (MB)**
|
||||
/// - `vram_used`: Used VRAM in **megabytes (MB)**
|
||||
///
|
||||
/// GPU statistics for the host system.
|
||||
///
|
||||
/// # Fields
|
||||
|
Reference in New Issue
Block a user