OptiTrust: an Interactive Framework for Source-to-Source Transformations - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2022

OptiTrust: an Interactive Framework for Source-to-Source Transformations

Résumé

This paper presents an interactive framework for developing high-performance C code via series of source-to-source transformations. Optimization steps are described in transformation scripts, expressed as OCaml programs. The programmer can interactively visualize the textual differences associated with any step of the script. We demonstrate the effectiveness of OptiTrust by reproducing a manually optimized Particle-In-Cell numerical simulation, starting from a direct, unoptimized version of the algorithm. This case study covers many state-of-the-art optimization patterns that appear in numerical simulation codes. We argue that, compared with optimizing code by hand, deriving high performance code using a transformation script makes the code easier to review, easier to debug, and easier to maintain as the intended program or as the target hardware evolves.
Fichier principal
Vignette du fichier
optitrust_pic.pdf (1.49 Mo) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03773485 , version 1 (09-09-2022)

Identifiants

  • HAL Id : hal-03773485 , version 1

Citer

Arthur Charguéraud, Begatim Bytyqi, Damien Rouhling, Yann A Barsamian. OptiTrust: an Interactive Framework for Source-to-Source Transformations. 2022. ⟨hal-03773485⟩
145 Consultations
75 Téléchargements

Partager

Gmail Facebook X LinkedIn More