OptiTrust: an Interactive Framework for Source-to-Source Transformations - Inria - Institut national de recherche en sciences et technologies du numérique
Preprints, Working Papers, ... Year : 2022

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

Abstract

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
Origin Files produced by the author(s)

Dates and versions

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

Identifiers

  • HAL Id : hal-03773485 , version 1

Cite

Arthur Charguéraud, Begatim Bytyqi, Damien Rouhling, Yann A Barsamian. OptiTrust: an Interactive Framework for Source-to-Source Transformations. 2022. ⟨hal-03773485⟩
186 View
112 Download

Share

More