Back to Search
Start Over
Algorithmic Differentiation of Code with Multiple Context-Specific Activities.
- Source :
-
ACM Transactions on Mathematical Software . Dec2016, Vol. 43 Issue 4, p1-21. 21p. - Publication Year :
- 2016
-
Abstract
- Algorithmic differentiation (AD) by source-transformation is an established method for computing derivatives of computational algorithms. Static dataflow analysis is commonly used by AD tools to determine the set of active variables, that is, variables that are influenced by the program input in a differentiable way and have a differentiable influence on the program output. In this work, a context-sensitive static analysis combined with procedure cloning is used to generate specialised versions of differentiated procedures for each call site. This enables better detection and elimination of unused computations and memory storage, resulting in performance improvements of the generated code, in both forward- and reverse-mode AD. The implications of this multi-activity AD approach on the static analysis of an AD tool is shown using dataflow equations. The worst-case cost of multi-activity AD on the differentiation process is analysed and practical remedies to avoid running into this worst case are presented. The method was implemented in the AD tool Tapenade, and we present its application to a 3D unstructured compressible flow solver, for which we generate an adjoint solver that performs significantly faster when multi-activity AD is used. [ABSTRACT FROM AUTHOR]
- Subjects :
- *MATHEMATICS
*ALGORITHMS
*DETECTION limit
*MATRICES (Mathematics)
*GEOMETRY
Subjects
Details
- Language :
- English
- ISSN :
- 00983500
- Volume :
- 43
- Issue :
- 4
- Database :
- Academic Search Index
- Journal :
- ACM Transactions on Mathematical Software
- Publication Type :
- Academic Journal
- Accession number :
- 120983459
- Full Text :
- https://doi.org/10.1145/3015464