Index handling and assign optimization for Algorithmic Differentiation reuse index managers

06/23/2020
by   Max Sagebaum, et al.
0

For operator overloading Algorithmic Differentiation tools, the identification of primal variables and adjoint variables is usually done via indices. Two common schemes exist for their management and distribution. The linear approach is easy to implement and supports memory optimization with respect to copy statements. On the other hand, the reuse approach requires more implementation effort but results in much smaller adjoint vectors, which are more suitable for the vector mode of Algorithmic Differentiation. In this paper, we present both approaches, how to implement them, and discuss their advantages, disadvantages and properties of the resulting Algorithmic Differentiation type. In addition, a new management scheme is presented which supports copy optimizations and the reuse of indices, thus combining the advantages of the other two. The implementations of all three schemes are compared on a simple synthetic example and on a real world example using the computational fluid dynamics solver in SU2.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/12/2023

Integrating Enzyme-generated functions into CoDiPack

In operator overloading algorithmic differentiation, it can be beneficia...
research
07/05/2019

Automatic Differentiation for Adjoint Stencil Loops

Stencil loops are a common motif in computations including convolutional...
research
10/05/2021

Coarsening Optimization for Differentiable Programming

This paper presents a novel optimization for differentiable programming ...
research
02/16/2021

A Lazy Approach for Efficient Index Learning

Learned indices using neural networks have been shown to outperform trad...
research
06/06/2018

Efficient Differentiable Programming in a Functional Array-Processing Language

We present a system for the automatic differentiation of a higher-order ...
research
11/14/2018

Stochastic Algorithmic Differentiation of (Expectations of) Discontinuous Functions (Indicator Functions)

In this paper we present a method for the accurate estimation of the der...
research
09/26/2020

Aerostructural Wing Shape Optimization assisted by Algorithmic Differentiation

With more efficient structures, last trends in aeronautics have witnesse...

Please sign up or login with your details

Forgot password? Click here to reset