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

使用Herbgrind查找浮点错误的根本原因

Finding Root Causes of Floating Point Error with Herbgrind

Alex Sanchez-Stern, Pavel Panchekha, Sorin Lerner, Zachary Tatlock

摘要:

浮点运算在科学、工程和金融领域发挥着核心作用,它使开发人员能够近似真实的算术。为了解决大型浮点应用程序中的数值问题,开发人员必须确定根本原因,这是困难的,因为浮点错误通常是非局部的,非组合的和非均匀的。本文介绍了Herbgrind,这是一个帮助开发人员识别和解决用低级C/C++和Fortran编写的数字代码的根本原因的工具。Herbgrind动态跟踪操作和程序输出之间的依赖关系,以避免误报,并将错误的计算抽象为简化的程序片段,其改进可以减少输出错误。我们进行了几个案例研究,应用Herbgrind大型,专家精心制作的数值程序,并表明它的规模跨越数十万行的应用程序,正确处理现代浮点硬件和数学库的低层次的细节,并跟踪跨函数边界和通过堆的错误。

英文摘要:

Floating-point arithmetic plays a central role in science, engineering, and finance by enabling developers to approximate real arithmetic. To address numerical issues in large floating-point applications, developers must identify root causes, which is difficult because floating-point errors are generally non-local, non-compositional, and non-uniform. This paper presents Herbgrind, a tool to help developers identify and address root causes in numerical code written in low-level C/C++ and Fortran. Herbgrind dynamically tracks dependencies between operations and program outputs to avoid false positives and abstracts erroneous computations to a simplified program fragment whose improvement can reduce output error. We perform several case studies applying Herbgrind to large, expert-crafted numerical programs and show that it scales to applications spanning hundreds of thousands of lines, correctly handling the low-level details of modern floating point hardware and mathematical libraries, and tracking error across function boundaries and through the heap.

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

↑