NVIDIA Tensor Core Programmability, Performance & Precision
Stefano Markidis, Steven W. D. Chien, Erwin Laure et al. · IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW) · 2018
The NVIDIA Volta GPU microarchitecture introduces a specialized unit, called Tensor Core that performs one matrix-multiply-and-accumulate on 4x4 matrices per clock cycle. The NVIDIA Tesla V100 accelerator, featuring the Volta microarchitecture, provides 640 Tensor Cores with a theoretical peak performance of 125 Tflops/s in mixed precision. In this paper, we investigate current approaches to program NVIDIA Tensor Cores, their performances and the precision loss due to computation in mixed precision. Currently, NVIDIA provides three different ways of programming matrix-multiply-and-accumulate on Tensor Cores: the CUDA Warp Matrix Multiply Accumulate (WMMA) API, CUTLASS, a templated library based on WMMA, and cuBLAS GEMM. After experimenting with different approaches, we found that NVIDIA Tensor Cores can deliver up to 83 Tflops/s in mixed precision on a Tesla V100 GPU, seven and three times the performance in single and half precision respectively. A WMMA implementation of batched GEMM reaches a performance of 4 Tflops/s. While precision loss due to matrix multiplication with half precision input might be critical in many HPC applications, it can be considerably reduced at the cost of increased computation. Our results indicate that HPC applications using matrix multiplications can strongly benefit from using of NVIDIA Tensor Cores.
Cited by 348 works. doi:10.1109/ipdpsw.2018.00091 Open-access PDF
Authors
References
- In-Datacenter Performance Analysis of a Tensor Processing Unit
- A million spiking-neuron integrated circuit with a scalable communication network and interface
- A reconfigurable fabric for accelerating large-scale datacenter services
- SpiNNaker: Mapping neural networks onto a massively-parallel chip multiprocessor
- The Accuracy of Floating Point Summation
- Mixed Precision Iterative Refinement Techniques for the Solution of Dense Linear Systems
- Flexpoint: An Adaptive Numerical Format for Efficient Training of Deep Neural Networks
- Always-on Vision Processing Unit for Mobile Applications
- LIBXSMM: Accelerating Small Matrix Multiplications by Runtime Code Generation
- The Design and Performance of Batched BLAS on Modern High-Performance Computing Systems