High-Performance Derivative Computations using CoDiPack
Max Sagebaum, Tim A. Albring, Nicolas R. Gauger · ACM Transactions on Mathematical Software · 2019
There are several AD tools available that all implement different strategies for the reverse mode of AD. The most common strategies are primal value taping (implemented e.g. by ADOL-C) and Jacobian taping (implemented e.g. by Adept and dco/c++). Particulary for Jacobian taping, recent advances using expression templates make it very attractive for large scale software. However, the current implementations are either closed source or miss essential features and flexibility. Therefore, we present the new AD tool CoDiPack (Code Differentiation Package) in this paper. It is specifically designed for minimal memory consumption and optimal runtime, such that it can be used for the differentiation of large scale software. An essential part of the design of CoDiPack is the modular layout and the recursive data structures which not only allow the efficient implementation of the Jacobian taping approach but will also enable other approaches like the primal value taping or new research ideas. We will finally present the performance values of CoDiPack on a generic PDE example and on the SU2 code.
Cited by 149 works. doi:10.1145/3356900 Open-access PDF
Authors
References
- Evaluating Derivatives
- SU2: An Open-Source Suite for Multiphysics Simulation and Design
- Getting Started with ADOL-C
- Reverse accumulation and attractive fixed points
- A fully implicit finite-difference scheme for two-dimensional Burgers’ equations
- Fast Reverse-Mode Automatic Differentiation using Expression Templates in C++
- Algorithmic Differentiation of Implicit Functions and Optimal Values
- Exact and numerical solutions for non-linear Burger’s equation by VIM
- Numerical solutions of two-dimensional Burgers’ equations by discrete Adomian decomposition method
- Automatic differentiation in C++ using expression templates and. application to a flow control problem