Verifying Numeric Correctness
Check results against a reference.
Fast but Wrong Is Useless
An optimized kernel only counts if it computes the right answer. Always verify before you trust a speedup.
Keep a Reference
Hold on to the simple, obviously correct version. It is your reference, the source of truth every fast kernel must match.
All lessons in this course
- Modeling a Tensor in Mojo
- Building a Matmul Step by Step
- Optimizing the Inner Product
- Verifying Numeric Correctness