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

走向一个为现实而奋斗的人

Towards a Compiler for Reals

Eva Darulova, Viktor Kuncak

摘要:

在科学计算或嵌入式系统中常见的数值软件,不可避免地使用实数算术的近似值,而大多数算法都是在实数算术中设计的。在许多领域中,舍入误差不是不准确的唯一来源,并且测量和其它输入误差进一步增加了计算结果的不确定性。需要适当的工具来帮助用户选择合适的近似值,特别是对于安全关键型应用。我们提出的源到源编译器罗莎作为输入的一个实值程序的错误规范和合成代码在一个适当的浮点或定点数据类型。这样的编译器的主要挑战是一个完全自动化的,健全的,但足够准确的数值误差估计。我们提出了一个统一的技术,浮点和定点运算的各种精度,可以处理非线性运算,确定封闭形式的符号不变量的无界循环和量化的影响,不连续性的数值误差。我们评估罗莎的一些基准从科学计算和嵌入式系统,并将其与最先进的自动误差估计,显示它提出了一个有趣的权衡精度和性能。

英文摘要:

Numerical software, common in scientific computing or embedded systems, inevitably uses an approximation of the real arithmetic in which most algorithms are designed. In many domains, roundoff errors are not the only source of inaccuracy and measurement and other input errors further increase the uncertainty of the computed results. Adequate tools are needed to help users select suitable approximations, especially for safety-critical applications. We present the source-to-source compiler Rosa which takes as input a real-valued program with error specifications and synthesizes code over an appropriate floating-point or fixed-point data type. The main challenge of such a compiler is a fully automated, sound and yet accurate enough numerical error estimation. We present a unified technique for floating-point and fixed-point arithmetic of various precisions which can handle nonlinear arithmetic, determine closed- form symbolic invariants for unbounded loops and quantify the effects of discontinuities on numerical errors. We evaluate Rosa on a number of benchmarks from scientific computing and embedded systems and, comparing it to state-of-the-art in automated error estimation, show it presents an interesting trade-off between accuracy and performance.

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

↑