Hardware Acceleration for HPS Algorithms in Two and Three Dimensions

Owen Melia, Daniel Fortunato, Jeremy G. Hoskins, Rebecca Willett · DOI

Abstract

This paper introduces a high-performance framework for Hierarchical Poincaré–Steklov (HPS) solvers, optimized for modern GPU architectures using JAX. By implementing hardware-aware strategies such as subtree recomputation and 3D adaptive refinement, the authors overcome memory and communication bottlenecks typical of fast direct solvers. The integration with JAX enables seamless automatic differentiation, facilitating the solution of complex inverse problems with unprecedented efficiency.

Introduction

Solving elliptic partial differential equations (PDEs), such as the Poisson or Helmholtz equations, is a cornerstone of scientific computing. While iterative solvers are widely used, fast direct solvers like HPS are advantageous when the same system must be solved repeatedly because they compute a reusable "solution operator."

However, HPS algorithms have historically faced significant hurdles on modern hardware. Their large memory footprint and the "communication wall"—the slow data transfer between CPU and GPU—often negate the computational speed of accelerators. This work presents a rethink of the HPS algorithm to make it "hardware-aware," leveraging the high throughput of GPUs while minimizing data movement.

The Hierarchical Poincaré–Steklov (HPS) Framework

The HPS method decomposes a global domain into a tree-like hierarchy of subdomains. At the leaf level, the solver computes local Poincaré–Steklov matrices that map boundary data to outgoing normal derivatives. These local operators are then merged upward through the tree to form a global solution operator.

Domain decomposition in the HPS framework, showing the merge of four subdomains into a parent node.

As illustrated in Figure 1, the merge process involves identifying interface points (red crosses) and boundary points (blue dots). By solving for the internal interfaces, the algorithm effectively "condenses" the information into a coarser representation at each level of the hierarchy.

Hardware-Aware Implementation Strategies

To optimize HPS for GPUs, the authors introduce three primary strategies:

1. Subtree Recomputation (2D)

On modern GPUs, computation is relatively inexpensive compared to the cost of moving data across PCIe lanes. The authors observed that standard HPS implementations spend excessive time transferring intermediate matrices to host RAM. To solve this, they process entire subtrees directly on the GPU, discarding intermediate results and recomputing them as needed. This redundant computation actually improves overall performance by eliminating the communication bottleneck.

2. Adaptive Discretization (3D)

In three dimensions, memory requirements for interface matrices grow cubically. To maintain a manageable memory footprint, the authors extended adaptive refinement to 3D. By using a "smart" octree that increases point density only where the solution changes rapidly (e.g., near wavefronts), the solver keeps the bottleneck interface matrices small enough to fit within the 80GB memory of high-end GPUs like the NVIDIA H100.

3. JAX and Automatic Differentiation

By implementing the solver in JAX, the authors gain native support for automatic differentiation (AD). This allows the HPS solver to be used as a differentiable component in machine learning or optimization loops. Researchers can perform "inverse scattering"—calculating object properties from wave reflections—using standard gradient-based optimization without manually deriving complex adjoint equations.

The Merge Algorithm

The core of the HPS solver is the hierarchical merge stage. The computational efficiency of this stage is critical for overall performance.

Algorithm 2: The hierarchical merge stage of the HPS solver.

As shown in Algorithm 2 (Figure 2), the merge stage iterates through the levels of the tree, building blocks from child nodes and inverting the interface matrix $D$. This inversion represents the bulk of the computational work and is highly optimized in the JAX framework.

Key Results

  • Computational Speed: The GPU implementation achieved massive speedups over 64-core CPU nodes, reaching 20% of peak double-precision FLOPS on an NVIDIA H100.
  • Inverse Problem Efficiency: The authors successfully solved an inverse scattering problem in just 75 seconds on a single GPU using automatic differentiation.
  • 3D Memory Management: The adaptive strategy reduced the size of bottleneck matrices by more than 50% compared to uniform grids while maintaining target accuracy.

Limitations and Future Work

Despite these advances, challenges remain. Automatic differentiation requires storing the full computational graph, which currently limits the size of inverse problems that can be solved. Additionally, the current framework is restricted to square and cubic domains; extending these methods to unstructured meshes for complex geometries is a priority for future research.

Conclusion

This work demonstrates that hardware-aware algorithmic design can make high-order direct solvers practical for modern computing architectures. By trading redundant computation for reduced data movement and leveraging adaptive refinement, the HPS framework provides a powerful, differentiable tool for large-scale scientific simulation and optimization.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Linearized Poisson--Boltzmann equation, permittivity ε(x)3D adaptive HPSRuntime319.1 sp=10, tolerance 1×10⁻⁴; left-hand table results for ε(x). Runtime includes adaptive dis…
Source quote
L816: 10 │ 10 (-4) │ 1{,}982 │ 1{,}982{,}000 │ 5 │ 319.1
Linearized Poisson--Boltzmann equation, simplified permittivity ε_vdW(x)3D adaptive HPSRuntime483.0 sp=10, tolerance 1×10⁻⁶; right-hand table results for ε_vdW(x). Runtime includes adaptiv…
Source quote
L838: 10 │ 1 × 10 (-6) │ 2{,}605 │ 2{,}605{,}000 │ 5 │ 483.0
BibTeX
@article{melia2026hardware,
  author = {Owen Melia and Daniel Fortunato and Jeremy G. Hoskins and Rebecca Willett},
  title = {{Hardware Acceleration for HPS Algorithms in Two and Three Dimensions}},
  journal = {Journal of Computational Physics},
  year = {2026},
  doi = {10.1016/j.jcp.2025.114549},
}
Figure