Verificarlo: 通过蒙特卡洛算术检查浮点精度
Verificarlo: checking floating point accuracy through Monte Carlo Arithmetic
AI总结:
本文提出了一种名为verificarlo的工具,通过扩展LLVM编译器,利用蒙特卡洛算术自动检查浮点计算的精度,从而提高科学计算中数值精度分析的可靠性和自动化水平。
摘要:
浮点计算的数值精度是一个广受研究的领域,但尚未在科学计算的终端用户中得到广泛应用。然而,随着对代码现代化的需求增加,以利用新的高性能硬件并进行更高分辨率的计算,这已成为一个关键问题。为了普及数值精度分析,提出工具和方法来可靠且自动地研究大型用例非常重要。在本文中,我们提出verificarlo,这是LLVM编译器的扩展,能够以透明的方式自动使用蒙特卡洛算术,支持C、C++和Fortran等主要语言。与源到源的方法不同,我们的实现捕捉了编译器优化对数值精度的影响。我们展示了使用verificarlo工具的蒙特卡洛算术在各种用例中优于现有方法,并朝着自动数值分析迈进了一步。
英文摘要:
Numerical accuracy of floating point computation is a well studied topic which has not made its way to the end-user in scientific computing. Yet, it has become a critical issue with the recent requirements for code modernization to harness new highly parallel hardware and perform higher resolution computation. To democratize numerical accuracy analysis, it is important to propose tools and methodologies to study large use cases in a reliable and automatic way. In this paper, we propose verificarlo, an extension to the LLVM compiler to automatically use Monte Carlo Arithmetic in a transparent way for the end-user. It supports all the major languages including C, C++, and Fortran. Unlike source-to-source approaches, our implementation captures the influence of compiler optimizations on the numerical accuracy. We illustrate how Monte Carlo Arithmetic using the verificarlo tool outperforms the existing approaches on various use cases and is a step toward automatic numerical analysis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。