Institutions | About Us | Help | Gaeilge
rian logo

Go Back
AD in Fortran Part 2: Implementation via Prepreprocessor
Radul, Alexey; Pearlmutter, Barak A.; Siskind, Jeffrey Mark
We describe an implementation of the FARFEL FORTRAN AD extensions (Radul et al., 2012). These extensions integrate forward and reverse AD directly into the programming model, with attendant benefits to flexibility, modularity, and ease of use. The implementation we describe is a “prepreprocessor” that generates input to existing FORTRAN-based AD tools. In essence, blocks of code which are targeted for AD by FARFEL constructs are put into subprograms which capture their lexical variable context, and these are closure-converted into top-level subprograms and specialized to eliminate EXTERNAL arguments, rendering them amenable to existing AD preprocessors, which are then invoked, possibly repeatedly if the AD is nested.
Keyword(s): Nesting; multiple transformation; forward mode; reverse mode; TAPENADE; ADIFOR; programming-language implementation
Publication Date:
Type: Report
Peer-Reviewed: Yes
Institution: Maynooth University
Citation(s): Radul, Alexey and Pearlmutter, Barak A. and Siskind, Jeffrey Mark (2013) AD in Fortran Part 2: Implementation via Prepreprocessor. Working Paper. arXiv.
Publisher(s): arXiv
File Format(s): other
Related Link(s):
First Indexed: 2020-04-02 06:43:13 Last Updated: 2020-04-02 06:43:13