-
Notifications
You must be signed in to change notification settings - Fork 38
feat(system_monitor): Add GPU monitoring support for Windows and Linux (NVIDIA) #48
Copy link
Copy link
Open
Description
Add GPU monitoring support for Windows and Linux systems with NVIDIA GPUs using NVML (NVIDIA Management Library).
Motivation
Currently, GPU monitoring is only available on macOS via IOKit. Windows and Linux users with NVIDIA GPUs cannot see:
- GPU utilization percentage
- VRAM usage
This is essential for ML/AI workloads and GPU-accelerated applications.
Proposed Solution
Integrate nvml-wrapper crate for NVIDIA GPU monitoring on Windows and Linux.
Features
- GPU utilization monitoring (0–100%)
- VRAM usage monitoring (used/total)
- Multi-GPU detection
- Graceful fallback for non-NVIDIA systems
Implementation Details
- Add
nvml-wrapperdependency (conditional for Windows/Linux) - Create
NvidiaGpuStatsstruct for GPU statistics - Implement
query_nvidia_gpu_stats()function - Store NVML instance in static
OnceLock - Integrate with existing system monitor loop
Platform Support
| Platform | GPU Support |
|---|---|
| macOS | IOKit (Apple Silicon, AMD, Intel) |
| Windows | NVML (NVIDIA) |
| Linux | NVML (NVIDIA) |
Related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels