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

图形处理器中的混合精度

Mixed precision in Graphics Processing Unit

Quentin Gallouédec

摘要:

现代图形计算单元(GPU)被设计和优化为执行高度并行的数值计算。这种并行性在能量性能和计算方面都具有显著的优势。在本文中,我们将盘点混合精度的不同应用。我们回顾了目前在绝大多数系统中使用的数值计算标准。我们表明,混合精度,降低精度在输入的操作并不一定会降低其输出的精度。我们表明,这一原则允许其转换到最需要计算能力的分支之一:机器学习。利用不动点数和半精度是提高复杂神经网络学习能力的两种非常有效的方法。混合精度仍然需要使用合适的硬件,否则计算时间反而会延长。在Tesla V100系列中发现的NVIDIA Tensor Core是在硬件级别实现混合精度的一个例子。另一方面,通过放弃传统的冯·诺依曼模型,混合精度也可以转换到较低的抽象层次,使用相变存储器。

英文摘要:

Modern graphics computing units (GPUs) are designed and optimized to perform highly parallel numerical calculations. This parallelism has enabled (and promises) significant advantages, both in terms of energy performance and calculation. In this document, we take stock of the different applications of mixed precision. We recall the standards currently used in the overwhelming majority of systems in terms of numerical computation. We show that the mixed precision which decreases the precision at the input of an operation does not necessarily decrease the precision of its output. We show that this previous principle allows its transposition into one of the branches that most needs computing power: machine learning. The use of fixed point numbers and half-precision are two very effective ways to increase the learning ability of complex neural networks. Mixed precision still requires the use of suitable hardware, failing which the calculation time could on the contrary be lengthened. The NVIDIA Tensor Core that is found among others in their Tesla V100 range, is an example of implementation at the hardware level of mixed precision. On the other hand, by abandoning the traditional von Neumann model, mixed precision can also be transposed to a lower level of abstraction, using phase change memories.

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

↑