GPU Tensor Cores for Fast Arithmetic Reductions

Navarro, Cristobal A.; Carrasco, Roberto; Barrientos, Ricardo J.; Riquelme, Javier A.; Vega, Raimundo

Abstract

This article proposes a parallel algorithm for computing the arithmetic reduction of n numbers as a set of matrix-multiply accumulate (MMA) operations that are executed simultaneously by GPU tensor cores. The analysis, assuming tensors of size m x m, shows that the proposed algorithm has a parallel running time of T(n) = 5log(m2n) and a speedup of S = 4/5 log(2) m(2) over a canonical parallel reduction. Experimental performance results on a Tesla V100 GPU show that the tensor-core based approach is energy efficient and runs up to similar to 3.2x and 2x faster than a standard GPU-based reduction and Nvidia's CUB library, respectively, while keeping the numerical error below 1 percent with respect to a double precision CPU reduction. The chained design of the algorithm allows a flexible configuration of GPU thread-blocks and the optimal values found through experimentation agree with the theoretical ones. The results obtained in this work show that GPU tensor cores are relevant not only for Deep Learning or Linear Algebra computations, but also for applications that require the acceleration of large summations.

Más información

Título según WOS: GPU Tensor Cores for Fast Arithmetic Reductions
Título de la Revista: IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS
Volumen: 32
Número: 1
Editorial: IEEE COMPUTER SOC
Fecha de publicación: 2021
Página de inicio: 72
Página final: 84
DOI:

10.1109/TPDS.2020.3011893

Notas: ISI