Accurate Models of AMD Matrix Cores
Faizan A Khattak, Mantas Mikaitis, Carlo J. Graziani
Key points
From the paper's conclusion- We characterise the numerical behaviour of matrix multipliers across three AMD GPU architectures: CDNA 1, CDNA 2, and CDNA 3, using the MI100, MI210/250, and MI300A/300X GPUs, respectively.
Abstract
Matrix multipliers available on recent GPUs do not conform with the IEEE 754 floating point standard. Features of matrix multipliers differ across vendors and architectures of the same vendor, such as accumulator width, rounding behaviour, normalisation points, intermediate underflow and overflow logic, the handling of subnormals, and the treatment of special inputs. As a result, reproducibility of small matrix multiplier results across devices is not possible and cannot be achieved by software control. Implementation details of matrix multipliers are not documented, making it difficult to interpret discrepancies in the computed results. We characterise the numerical behaviour of matrix multipliers across three AMD GPU architectures: CDNA 1, CDNA 2, and CDNA 3, using the MI100, MI210/250, and MI300A/300X GPUs, respectively. We design test vectors to target numerical features for all supported input formats and provide the derivation and the reasoning for why each vector allows to determine a particular numerical feature based on the outputs of the devices. MATLAB-based software models of the matrix multipliers are then developed for each architecture and validated for bit-level reproducibility against hardware using a randomized test suite consisting of 10 million sets of random input vectors. To achieve this, we applied a previously developed technique to iteratively refine the accuracy of the models in a loop, by randomized testing followed by test-refinement until the model matches the hardware for every test case. Finally, as a proof of concept for what experimental research can be done with the models, we have utilised them in two demonstrative numerical applications, quantifying application-level accuracy differences between AMD matrix cores and the NVIDIA tensor cores.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Analysis of Floating-Point Matrix Multiplication Computed via Integer ArithmeticSIAM Journal on Scientific Computing · 2026
- Providing Accuracy Guarantees for the Fixed-Point Emulation of Matrix MultiplicationarXiv · 2026
- How to grade the accuracy of the BLASACM Transactions on Mathematical Software · 2026
- FP64 Performance and the Limits of Ozaki Emulation on HPC SystemsarXiv · 2026
- Accurate Products, Inaccurate Inverse: Emulated FP64 BLAS in Blocked Triangular InversionarXiv · 2026
- TOMOS: Eliminating Data Duplication in Mixed-Precision Matrix ComputationsarXiv · 2026