0
To-Be-Recorded Analysis inside Derivative Code Compiler

Excerpt

Algorithmic Differentiation (AD) is applied to numerical simulation programs in order to produce code for the computation of various kinds of derivatives. A data flow analysis called To-Be-Recorded (TBR) analysis aims to detect the set of variables required in reverse section and values that can be lost because of the overwriting in forward section for adjoint mode of AD. The implementation of the TBR analysis uses a syntax-directed algorithm based on the following attribute grammar. The expected result of TBR analysis is to get more efficient generated code in terms of memory. We have implemented TBR analysis inside our AD-tool called “Derivative Code Compiler (DCC)”. Depending on the testing cases, the percentage of memory savings can be different. In the test case illustrated in this paper, a memory saving of approximately 18% was achieved.

  • Abstract
  • Key Words
  • 1 Introduction
  • 2. Syntax-Directed TBR Analysis
  • 3. Testing and Result
  • References

Related Content

Customize your page view by dragging and repositioning the boxes below.

Related Journal Articles
Related eBook Content
Topic Collections

Sorry! You do not have access to this content. For assistance or to subscribe, please contact us:

  • TELEPHONE: 1-800-843-2763 (Toll-free in the USA)
  • EMAIL: asmedigitalcollection@asme.org
Sign In