Expand description
Simulation Testing Framework (TRUENO-SPEC-012)
Provides deterministic, reproducible, and falsifiable validation of compute operations across all backends: SIMD (CPU), PTX (CUDA), and WGPU.
This module integrates with the sovereign stack (simular) and follows Toyota Production System principles:
- Jidoka: Built-in quality - stop on defect
- Poka-Yoke: Mistake-proofing via type safety
- Heijunka: Leveled testing across backends
- Genchi Genbutsu: Visual inspection of results
- Kaizen: Continuous performance improvement
§Example
ⓘ
use trueno::simulation::{SimTestConfig, BackendTolerance};
let config = SimTestConfig::builder()
.seed(42)
.tolerance(BackendTolerance::default())
.build();Structs§
- Backend
Selector - Poka-Yoke: Type-safe backend selection
- Backend
Tolerance - Backend-specific tolerance configuration
- Buffer
Renderer - Simple buffer renderer for SIMD output visualization
- Color
Palette - Color palette for heatmap rendering
- Golden
Baseline - Golden baseline manager for visual regression testing
- Heijunka
Scheduler - Heijunka: Balanced test distribution across backends and sizes
- Jidoka
Guard - Jidoka guard for simulation tests
- Needs
Seed - Builder state: seed not set
- Pixel
Diff Result - Pixel diff result for visual regression testing
- Ready
- Builder state: ready to build
- Rgb
- RGB color for visualization
- SimTest
Config - Simulation test configuration
- SimTest
Config Builder - Simulation test configuration builder
- Simulation
Test - Simulation test configuration
- Stress
Anomaly - Anomaly detected during stress testing
- Stress
Result - Stress test result for a single operation
- Stress
Test Config - Stress test configuration for trueno operations
- Stress
Thresholds - Performance thresholds for stress testing
- Visual
Regression Config - Visual regression test configuration (Genchi Genbutsu)
Enums§
- Backend
Category - Backend category for selection result
- Jidoka
Action - Jidoka action on condition trigger
- Jidoka
Condition - Jidoka condition that triggers stop
- Jidoka
Error - Jidoka error types
- Stress
Anomaly Kind - Types of stress test anomalies