Performance portable adjoints for structured mesh applications with OPS

Derivatives are crucial for engineering and scientific applications like optimization and inverse problems. While finite difference approximations can estimate derivatives, they are computationally expensive and inaccurate. Algorithmic differentiation (AD) provides an efficient and exact method to compute derivatives by treating computer programs as mathematical functions and applying the chain rule of calculus. Our work focuses on adjoint-mode AD for structured mesh stencil applications. We extend the Oxford Parallel Structured mesh solver library (OPS) domain-specific language to compute derivatives using the reverse mode of algorithmic differentiation. OPS allows developers to express mesh algorithms from a high-level code targeting multiple hardware from the same source. Taking advantage of the domain-specific abstraction, the extension creates a compact adjoint tape at the level of computational loops and generates the platform-specific (OpenMP and CUDA) parallel implementations for the adjoint loops, using the user provided primal and adjoint stencil-kernels. We differentiate three example applications written in OPS, demonstrating similar performance to the original applications on both CPUs and GPUs. On these applications, computing derivatives only took \\(3.7-9.7x\\) time (including the evaluation of the application) compared to the original applications, which is in line with state of the art tools.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Mathematical Software
Published
2026-09-09
DOI
https://doi.org/10.1145/3815776
Primary Topic
Advanced Numerical Methods in Computational Mathematics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Performance portable adjoints for structured mesh applications with OPS

Uwe Naumann, Gábor Dániel Balogh, István Z. Reguly, Johannes Lotz et al.
ACM Transactions on Mathematical Software
Advanced Numerical Methods in Computational Mathematics
article

Performance portable adjoints for structured mesh applications with OPS

Uwe Naumann, Gábor Dániel Balogh, István Z. Reguly, Johannes Lotz, Jacques du Toit
article en

Abstract

Derivatives are crucial for engineering and scientific applications like optimization and inverse problems. While finite difference approximations can estimate derivatives, they are computationally expensive and inaccurate. Algorithmic differentiation (AD) provides an efficient and exact method to compute derivatives by treating computer programs as mathematical functions and applying the chain rule of calculus. Our work focuses on adjoint-mode AD for structured mesh stencil applications. We extend the Oxford Parallel Structured mesh solver library (OPS) domain-specific language to compute derivatives using the reverse mode of algorithmic differentiation. OPS allows developers to express mesh algorithms from a high-level code targeting multiple hardware from the same source. Taking advantage of the domain-specific abstraction, the extension creates a compact adjoint tape at the level of computational loops and generates the platform-specific (OpenMP and CUDA) parallel implementations for the adjoint loops, using the user provided primal and adjoint stencil-kernels. We differentiate three example applications written in OPS, demonstrating similar performance to the original applications on both CPUs and GPUs. On these applications, computing derivatives only took \(3.7-9.7x\) time (including the evaluation of the application) compared to the original applications, which is in line with state of the art tools.

ACM Transactions on Mathematical Software
Pázmány Péter Catholic University (HU), Numerical Algorithms Group (United Kingdom) (GB), RWTH Aachen University (DE)
Openalex Percentile: Top 13%
Advanced Numerical Methods in Computational Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Performance portable adjoints for structured mesh applications with OPS — Uwe Naumann, Gábor Dániel Balogh, et al. · ACM Transactions on Mathematical Software (2026) | TGRS Research Map | TGRS