Racer: Hunting GPU Kernel Bugs with Symbolic Equivalence Checking
TL;DR - Racer uses symbolic equivalence checking to verify that optimized GPU kernels exactly preserve reference behavior across all inputs, overcoming blind spots in tolerance-based differential testing. It found 82 real bugs across 2,408 production kernels, including 76 previously unknown issues.
- Racer symbolically executes PTX kernels and references, comparing exact algebraic expressions for corresponding output cells.
- Exact checking distinguishes acceptable floating-point differences from genuine logical errors.
- Shape reduction, lockstep CTA scheduling, and idiom templates with numeric refutation make analysis practical for concurrent production kernels.
- Evaluation covered 41 targets across 23 libraries; 41 of the detected bugs had been confirmed at publication time.