Hacker News front pageFaizan A Khattak, Mantas Mikaitis, Carlo J. Graziani2 min readpaperadvanced
Accurate Models of AMD Matrix Cores
Summary
The authors reverse‑engineer AMD’s CDNA matrix cores, build per‑architecture MATLAB models that match hardware bit‑for‑bit on 10 M random tests, and use them to compare AMD vs NVIDIA tensor‑core accuracy.
- AMD matrix units differ in accumulator width, rounding, subnormal handling, etc., and are undocumented.
- Custom test vectors expose each numerical feature; iterative random testing refines a software model until it reproduces hardware results exactly.
- Validated models achieve bit‑level reproducibility across MI100, MI210/250, and MI300A/300X GPUs.
- Demo applications show measurable accuracy gaps between AMD matrix cores and NVIDIA tensor cores.
Accurate software models let developers predict numerical error, write portable kernels, and benchmark hardware without needing proprietary documentation—critical for high‑performance ML and scientific code.
7/10

