Parallelizable adjoint stencil computations using transposed forward-mode algorithmic differentiation
Journal Article
·
· Optimization Methods and Software
- Department of Earth Science &, Engineering, Imperial College London, London, UK
- Argonne National Laboratory, Lemont, IL, USA
- Department of Computer Science, University of Arizona, Tucson, AZ, USA
- School of Engineering and Materials Science, Queen Mary University of London, London, UK
Algorithmic differentiation (AD) is a tool for generating discrete adjoint solvers, which efficiently compute gradients of functions with many inputs, for example for use in gradient-based optimization. AD is often applied to large computations such as stencil operators, which are an important part of most structured-mesh PDE solvers. Stencil computations are often parallelized, for example by using OpenMP, and optimized by using techniques such as cache-blocking and tiling to fully utilize multicore CPUs and many-core accelerators and GPUs. Differentiating these codes with conventional reverse-mode AD results in adjoint codes that cannot be expressed as stencil operations and may not be easily parallelizable. They thus leave most of the compute power of modern architectures unused. We present a method that combines forward-mode AD and loop transformation to generate adjoint solvers that use the same memory access pattern as the original computation that they are derived from and can benefit from the same optimization techniques. The effectiveness of this method is demonstrated by generating a scalable adjoint CFD solver for multicore CPUs and Xeon Phi accelerators.
- Research Organization:
- Argonne National Laboratory (ANL)
- Sponsoring Organization:
- National Science Foundation (NSF); USDOE Office of Science - Office of Advanced Scientific Computing Research; European Commission - Community Research and Development Information Service (CORDIS) - Seventh Framework Programme (FP7)
- DOE Contract Number:
- AC02-06CH11357;
- OSTI ID:
- 1477730
- Journal Information:
- Optimization Methods and Software, Journal Name: Optimization Methods and Software Journal Issue: 4-6 Vol. 33; ISSN 1055-6788
- Publisher:
- Taylor & Francis
- Country of Publication:
- United States
- Language:
- English
Similar Records
Automatic Differentiation for Adjoint Stencil Loops
Source-to-Source Automatic Differentiation of OpenMP Parallel Loops
Reverse-Mode Algorithmic Differentiation of an OpenMP-Parallel Compressible Flow Solver
Conference
·
2018
·
OSTI ID:1574311
Source-to-Source Automatic Differentiation of OpenMP Parallel Loops
Journal Article
·
2022
· ACM Transactions on Mathematical Software
·
OSTI ID:1883228
Reverse-Mode Algorithmic Differentiation of an OpenMP-Parallel Compressible Flow Solver
Journal Article
·
2018
· International Journal of High Performance Computing Applications
·
OSTI ID:1510005