arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.03640cs.DC
收藏

GPU张量核势的快速约化分析

Analyzing GPU Tensor Core Potential for Fast Reductions

Roberto Carrasco, Raimundo Vega, Cristóbal A. Navarro

摘要:

Nvidia GPU架构引入了新的计算元素,如\textit{tensor cores},这是一种专用于执行快速矩阵乘法累加(MMA)运算和加速\textit{Deep Learning}应用程序的特殊处理单元。在这项工作中,我们提出了将张量核用于不同目的的想法,例如并行算术约简问题,并提出了一种新的基于GPU张量核的算法,并分析了其潜在的性能优势,与传统的基于GPU的算法相比。所提出的方法将$n$数的减少编码为一组$m\times m$ MMA张量核操作(对于Nvidia的Volta架构$m=16$),并利用每个MMA操作仅需要一个GPU周期的事实。在一个简化的GPU计算模型下分析了代价,结果表明新算法成功地减少了$T(n) = 5\log_{m^2}(n)$步骤中的$n$数问题,并获得了$S = \frac{4}{5}\log_2(m^2)$的加速比。

英文摘要:

The Nvidia GPU architecture has introduced new computing elements such as the \textit{tensor cores}, which are special processing units dedicated to perform fast matrix-multiply-accumulate (MMA) operations and accelerate \textit{Deep Learning} applications. In this work we present the idea of using tensor cores for a different purpose such as the parallel arithmetic reduction problem, and propose a new GPU tensor-core based algorithm as well as analyze its potential performance benefits in comparison to a traditional GPU-based one. The proposed method, encodes the reduction of $n$ numbers as a set of $m\times m$ MMA tensor-core operations (for Nvidia's Volta architecture $m=16$) and takes advantage from the fact that each MMA operation takes just one GPU cycle. When analyzing the cost under a simplified GPU computing model, the result is that the new algorithm manages to reduce a problem of $n$ numbers in $T(n) = 5\log_{m^2}(n)$ steps with a speedup of $S = \frac{4}{5}\log_2(m^2)$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑