Farfel
AD {it in} Fortran: implementation via prepreprocessor We describe an implementation of the {it Farfel Fortran77 AD extensions} [{it A. Radul} et al., “AD in Fortran, Part 1: Design”, url{arXiv:1203.1448}]. 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 { t EXTERNAL} arguments, rendering them amenable to existing AD preprocessors, which are then invoked, possibly repeatedly if the AD is nested.
Keywords for this software
References in zbMATH (referenced in 2 articles , 1 standard article )
Showing results 1 to 2 of 2.
Sorted by year (- Geeraert, Sébastien; Lehalle, Charles-Albert; Pearlmutter, Barak A.; Pironneau, Olivier; Reghai, Adil: Mini-symposium on automatic differentiation and its applications in the financial industry (2017)
- Radul, Alexey; Pearlmutter, Barak A.; Siskind, Jeffrey Mark: AD \textitinFortran: implementation via prepreprocessor (2012)