An Interval Compiler for Sound Floating-Point Computations
Authors:
- 27 February 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 52-64
Abstract
Floating-point arithmetic is widely used by software developers but is unsound, i.e., there is no guarantee on the accuracy obtained, which can be imperative in safety-critical applications. We present IGen, a source-to-source compiler that translates a given C function using floating-point into an equivalent sound C function that uses interval arithmetic. IGen supports Intel SIMD intrinsics in the input function using a specially designed code generator and can produce SIMD-optimized output. To mitigate a possible loss of accuracy due to the increase of interval sizes, IGen can compile to double-double precision, again SIMD-optimized. Finally, IGen implements an accuracy optimization for the common reduction pattern. We benchmark our compiler on high-performance code in the domain of linear algebra and signal processing. The results show that the generated code delivers sound double precision results at high performance. In particular, we observe speed-ups of up to 9.8 when compared to commonly used interval libraries using double precision. When compiling to double-double, our compiler delivers intervals that keep error accumulation small enough to compute results with at most one bit of error in double precision, i.e., certified double precision results.Keywords
This publication has 35 references indexed in Scilit:
- Daisy - Framework for Analysis and Optimization of Numerical Programs (Tool Paper)2018
- Handbook of Floating-Point Arithmetic2018
- Sound Numerical Computations in Abstract Acceleration2017
- Improving the numerical accuracy of programs by automatic transformationInternational Journal on Software Tools for Technology Transfer, 2016
- Robustness Analysis of Finite Precision Implementations2013
- Static Analysis of Finite Precision Computations2011
- Towards an Industrial Use of FLUCTUAT on Safety-Critical Avionics Software2009
- A Sound Floating-Point Polyhedra Abstract Domain2008
- Motivations for an Arbitrary Precision Interval Arithmetic and the MPFI LibraryReliable Computing, 2005
- A floating-point technique for extending the available precisionNumerische Mathematik, 1971