Automatic source-to-source error compensation of floating-point programs: code synthesis to optimize accuracy and time - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Concurrency and Computation: Practice and Experience Année : 2016

Automatic source-to-source error compensation of floating-point programs: code synthesis to optimize accuracy and time

Résumé

Numerical programs with IEEE 754 floating-point computations may suffer from inaccuracies, since finite precision arithmetic is an approximation of real arithmetic. Solutions that reduce the loss of accuracy are available, such as, compensated algorithms or double-double precision floating-point arithmetic. Our goal is to automatically improve the numerical quality of a numerical program with the smallest impact on its performance. We define and implement source code transformations in order to derive automatically compensated programs. We present several experimental results to compare the transformed programs and existing solutions. The transformed programs are as accurate and efficient as the implementations of compensated algorithms when the latter exist. Furthermore, we propose some transformation strategies allowing us to improve partially the accuracy of programs and to tune the impact on execution time. Trade-offs between accuracy and performance are assured by code synthesis. Experimental results show that user-defined trade-offs are achievable in a reasonable amount of time, with the help of the tools we present in the paper.
Fichier principal
Vignette du fichier
tlm.pdf (555.59 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01236919 , version 1 (11-03-2016)
hal-01236919 , version 2 (10-04-2017)

Identifiants

Citer

Laurent Thévenoux, Philippe Langlois, Matthieu Martel. Automatic source-to-source error compensation of floating-point programs: code synthesis to optimize accuracy and time. Concurrency and Computation: Practice and Experience, 2016, ⟨10.1002/cpe.3953⟩. ⟨hal-01236919v1⟩
875 Consultations
465 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More