...
首页> 外文期刊>SIAM Journal on Scientific Computing >SIMULATING LOW PRECISION FLOATING-POINT ARITHMETIC
【24h】

SIMULATING LOW PRECISION FLOATING-POINT ARITHMETIC

机译:模拟低精度浮点算术

获取原文
获取原文并翻译 | 示例

摘要

The half-precision (fp16) floating-point format, defined in the 2008 revision of the IEEE standard for floating-point arithmetic, and a more recently proposed half-precision format bfloatl6, are increasingly available in GPUs and other accelerators. While the support for low precision arithmetic is mainly motivated by machine learning applications, general purpose numerical algorithms can benefit from it, too, gaining in speed, energy usage, and reduced communication costs. Since the appropriate hardware is not always available, and one may wish to experiment with new arithmetics not yet implemented in hardware, software simulations of low precision arithmetic are needed. We discuss how to simulate low precision arithmetic using arithmetic of higher precision. We examine the correctness of such simulations and explain via rounding error analysis why a natural method of simulation can provide results that are more accurate than actual computations at low precision. We provide a MATLAB function, chop, that can be used to efficiently simulate fp16, bfloatl6, and other low precision arithmetics, with or without the representation of subnormal numbers and with the options of round to nearest, directed rounding, stochastic rounding, and random bit flips in the significand. We demonstrate the advantages of this approach over defining a new MATLAB class and overloading operators.
机译:在2008年浮点算法的IEEE标准的2008年修订中定义的半精度(FP16)浮点格式,以及最近提出的半精密格式BfloAtL6,GPU和其他加速器越来越多地提供。虽然对低精度算术的支持主要由机器学习应用而激励,但通用数值算法也可以从中受益,速度,能量使用量降低,沟通成本降低。由于不始终可用的合适硬件,因此可能希望尝试在硬件中尚未实施的新算术,需要低精度算术的软件模拟。我们讨论如何使用更高精度算术模拟低精度算术。我们检查这种模拟的正确性,并通过舍入误差分析解释为什么自然模拟方法可以提供比低精度的实际计算更准确的结果。我们提供了一个MATLAB功能,可用于有效地模拟FP16,BFLOATL6和其他低精度算法,有或没有子通号的表示,并且圆形到最近,指导舍入,随机舍入和随机的选项钻头翻转有效。我们展示了这种方法在定义新的Matlab类和超载运营商的优势。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号