Literature DB >> 33816984

Numerical behavior of NVIDIA tensor cores.

Massimiliano Fasi1, Nicholas J Higham2, Mantas Mikaitis2, Srikara Pranesh2.   

Abstract

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.
© 2021 Fasi et al.

Entities:  

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

Year:  2021        PMID: 33816984      PMCID: PMC7959640          DOI: 10.7717/peerj-cs.330

Source DB:  PubMed          Journal:  PeerJ Comput Sci        ISSN: 2376-5992


  1 in total

1.  Mixed-precision iterative refinement using tensor cores on GPUs to accelerate solution of linear systems.

Authors:  Azzam Haidar; Harun Bayraktar; Stanimire Tomov; Jack Dongarra; Nicholas J Higham
Journal:  Proc Math Phys Eng Sci       Date:  2020-11-25       Impact factor: 2.704

  1 in total
  2 in total

1.  Effect of neural network structure in accelerating performance and accuracy of a convolutional neural network with GPU/TPU for image analytics.

Authors:  Aswathy Ravikumar; Harini Sriraman; P Maruthi Sai Saketh; Saddikuti Lokesh; Abhiram Karanam
Journal:  PeerJ Comput Sci       Date:  2022-03-03

2.  Performance impact of precision reduction in sparse linear systems solvers.

Authors:  Mawussi Zounon; Nicholas J Higham; Craig Lucas; Françoise Tisseur
Journal:  PeerJ Comput Sci       Date:  2022-01-17
  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.