4.6 Article

Numerical behavior of NVIDIA tensor cores

Journal

PEERJ COMPUTER SCIENCE
Volume -, Issue -, Pages -

Publisher

PEERJ INC
DOI: 10.7717/peerj-cs.330

Keywords

NVIDIA V100 GPU; NVIDIA T4 GPU; Tensor core; Dot product; Matrix multiply-accumulate; Floating-point arithmetic; Half precision; Binary16; IEEE 754 arithmetic; NVIDIA A100 GPU

Funding

  1. EPSRC Doctoral Prize Fellowship [EP/P020720/1]
  2. Engineering and Physical Sciences Research Council [EP/P020720/1]
  3. Royal Society
  4. EPSRC [EP/P020720/1] Funding Source: UKRI

Ask authors/readers for more resources

The study investigates the floating-point arithmetic implemented in NVIDIA tensor cores, determining important details through experiments on different graphics cards. It also provides a test suite that can be easily adapted for testing newer versions of NVIDIA tensor cores and similar accelerators from other vendors.
We explore the floating-point arithmetic implemented in the NVIDIA tensor cores, which are hardware accelerators for mixed-precision matrix multiplication available on the Volta, Turing, and Ampere microarchitectures. Using Volta V100, Turing T4, and Ampere A100 graphics cards, we determine what precision is used for the intermediate results, whether subnormal numbers are supported, what rounding mode is used, in which order the operations underlying the matrix multiplication are performed, and whether partial sums are normalized. These aspects are not documented by NVIDIA, and we gain insight by running carefully designed numerical experiments on these hardware units. Knowing the answers to these questions is important if one wishes to: (1) accurately simulate NVIDIA tensor cores on conventional hardware; (2) understand the differences between results produced by code that utilizes tensor cores and code that uses only IEEE 754-compliant arithmetic operations; and (3) build custom hardware whose behavior matches that of NVIDIA tensor cores. As part of this work we provide a test suite that can be easily adapted to test newer versions of the NVIDIA tensor cores as well as similar accelerators from other vendors, as they become available. Moreover, we identify a non-monotonicity issue affecting floating point multi-operand adders if the intermediate results are not normalized after each step.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available