Expand description
TUI Compute Mode Flow: CPU, GPU, and Memory Monitoring
TRUENO-SPEC-020: Unified compute device abstraction for real-time monitoring.
§Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ CPU │ │ NVIDIA GPU │ │ AMD GPU │
│ Backend │ │ Backend │ │ Backend │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
└────────────┬────┴────────────┬────┘
┌──────▼─────────────────▼──────┐
│ Unified Telemetry Collector │
└───────────────┬───────────────┘
│
┌───────────────▼───────────────┐
│ TUI Renderer (presentar) │
└───────────────────────────────┘§References
- [Volkov2008] Tile size optimization, memory bandwidth modeling
- [Liker2004] Toyota Way principles (Genchi Genbutsu, Jidoka)
- [LAMBDA-0002] Memory pressure levels specification
Structs§
- Color
Scheme - Colorblind-safe color scheme based on Viridis
- Compute
Metrics - Compute pipeline metrics
- CpuDevice
- CPU compute device using sysinfo
- Cuda
Device Info - CUDA device information from native driver API
- Cuda
Memory Info - Real-time CUDA memory information from cuMemGetInfo
- Data
Flow Metrics - Data flow and transfer metrics
- Data
Flow Render State - Data flow render state
- Device
Compute Metrics - Per-device compute metrics
- Device
Id - Unique identifier for a compute device
- Device
Render State - Device render state
- Device
Snapshot - Point-in-time snapshot of device metrics
- Gauge
Widget - Gauge widget for showing percentages
- GpuVram
Metrics - GPU VRAM metrics for a single device
- Kernel
Execution - Active kernel execution
- Kernel
Render State - Kernel render state
- Memory
Metrics - Comprehensive memory metrics for system and GPU
- Memory
Render State - Memory render state
- Pressure
Analysis - Detailed memory pressure analysis
- Progress
BarWidget - Progress bar widget
- RgbColor
- RGB color
- Section
- TUI section definition
- Sparkline
Widget - Sparkline widget for showing history
- Stress
Metrics - Stress test metrics collected during execution
- Stress
Test Config - Stress test configuration
- Stress
Test Report - Stress test report
- Table
Widget - Table widget
- Text
Widget - Text widget
- Transfer
- Memory transfer between host and device
- Transfer
Id - Unique transfer identifier
- TuiLayout
- TUI layout configuration
- TuiRender
State - Complete TUI render state
Enums§
- Chaos
Preset - Chaos engineering preset
- Device
Type - Type of compute device
- Gauge
Color - Gauge color
- Kernel
Status - Kernel execution status
- KeyAction
- Keyboard action
- Memory
Location - Memory location
- Pressure
Level - Memory pressure level based on available memory percentage
- Size
Check - Terminal size check result
- Stress
Target - Stress target
- Stress
Test State - Stress test runner state
- Stress
Test Verdict - Stress test verdict
- Text
Style - Text style
- Throttle
Reason - Reason for compute throttling
- Transfer
Direction - Transfer direction
- Transfer
Status - Transfer status
- Widget
- TUI widget
Traits§
- Compute
Device - Unified compute device abstraction
Functions§
- achieved_
gflops - Calculate achieved GFLOPS from operation count and time
- compute_
efficiency - Calculate compute efficiency percentage
- cuda_
device_ count - Get the number of CUDA devices
- cuda_
monitoring_ available - Check if CUDA monitoring is available
- gemm_
flops - Calculate theoretical FLOPS for a GEMM operation