Expand description
GPU Pixel Testing: Atomic verification of CUDA kernel correctness GPU Pixel Testing: Atomic verification of CUDA kernel correctness
Inspired by pixel-level GUI testing, GPU pixel testing verifies the smallest testable units of GPU kernel behavior to catch bugs like:
- Shared memory addressing (u64 vs u32)
- Loop branch direction (START vs END)
- Kernel name mismatches
- Tile/thread bounds violations
§Architecture
┌─────────────────────────────────────────────────────────────────┐
│ GPU Pixel Testing │
├─────────────────────────────────────────────────────────────────┤
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
│ │ PTX Static │ │ Kernel │ │ Regression │ │
│ │ Analysis │───►│ Pixel │───►│ Detection │ │
│ │ │ │ Tests │ │ │ │
│ └────────────┘ └────────────┘ └────────────┘ │
└─────────────────────────────────────────────────────────────────┘Structs§
- GpuPixel
Result - Result of a single GPU pixel test
- GpuPixel
Test - A single GPU pixel test
- GpuPixel
Test Suite - Suite of GPU pixel tests for a kernel
- GpuRegression
Suite - GPU kernel regression test suite
- Kernel
Pixel Config - Configuration for kernel pixel tests
- PtxAnalyzer
- PTX static analyzer
- PtxBug
- A detected PTX bug
- PtxValidation
Result - Result of PTX validation
- Regression
Config - Configuration for regression testing
- Regression
Result - Result of regression check
Enums§
- PtxBug
Class - PTX bug classification
Functions§
- run_
kernel_ pixels - Run all GPU pixel tests for a kernel
- run_
regression_ suite - Run regression suite on multiple kernels
- standard_
pixel_ tests - Standard GPU pixel tests catalog
- validate_
ptx - Quick validation of PTX for common GPU kernel bugs