Backend Numerics
Use this skill for IR lowering, backend codegen, numerical kernels, and autodiff work.
Core Principle
A green string-emission test is not enough. Numerical paths must be validated with execution.
Validation Surfaces
- evaluator vs generated C agreement
- compile-and-run helpers
- finite-difference comparisons for gradients
- shape, stride, and reduction edge cases
- BLAS and non-BLAS agreement where both paths exist
Chelis Expectations
- prefer real numeric assertions over structural-only checks
- include multi-op pipelines, not just single primitives
- exercise scalar, small tensor, and larger tensor cases where threading matters
- document any manual long-running numerical gate separately from default CI
- On the current local machine, HIP numerical/manual checks are available:
rocminforeportsRadeon 8060S Graphicswith ISAgfx1100, andhipccis installed. Use the real GPU path rather than downgrading to evaluator-only evidence when the gate specifically concerns HIP correctness.