Abstract
Solving saddle-point problems, such as the Stokes equations, is a cornerstone of physical simulations but presents significant computational challenges due to the indefinite nature of the resulting linear systems. While multigrid methods offer theoretical efficiency, their performance on modern GPU architectures is often limited by memory bandwidth rather than raw floating-point throughput. This paper introduces a "tuned" Vanka relaxation scheme that exploits the structure of regular meshes to minimize redundant memory movement. By utilizing GPU shared memory and lexicographic ordering, the proposed method achieves a 23x speedup over CPU implementations and outperforms established smoothers like Braess-Sarazin by more than 20% on NVIDIA A100 GPUs.
Introduction
Physical simulations in fields such as hemodynamics and geophysics frequently require solving saddle-point systems. These systems are characterized by a zero-block in the matrix, making them symmetric but indefinite, which precludes the use of standard iterative solvers like Jacobi or Gauss-Seidel. Multigrid methods are typically employed to solve these systems efficiently, but their overall performance is heavily dictated by the choice of the relaxation scheme (smoother). On modern hardware, the primary bottleneck is data movement between memory and the processor. This work focuses on optimizing the Vanka relaxation scheme—a robust but traditionally memory-intensive algorithm—for high-performance execution on GPUs.
Methodology: The Tuned Vanka Scheme
The authors evaluate two primary classes of preconditioners for the Stokes equations: block-triangular preconditioners and monolithic multigrid. Within the monolithic framework, they compare Schur-Uzawa, Braess-Sarazin, and Vanka relaxation.
Vanka relaxation operates by solving small, local "patches" of the mesh. In a standard implementation, this process involves significant redundant memory access as neighboring patches overlap. The innovation presented here, termed "Tuned Vanka," exploits the structure of uniform grids. By assuming a logically rectangular mesh and lexicographic ordering, the authors eliminate indirect addressing and utilize stencils.
Crucially, since many patches on a uniform grid share identical local matrices, the "tuned" algorithm loads the patch matrix into the GPU's fast shared memory once, allowing all threads in a block to reuse it. This strategy significantly increases the arithmetic intensity of the kernel, aligning the algorithm's requirements with the strengths of GPU architectures.
Experimental Setup
The performance of the proposed solvers was evaluated using a standard numerical benchmark: a manufactured solution for the steady-state incompressible Stokes equations on a unit-square domain.
The problem was discretized using Q2–Q1 Taylor-Hood mixed finite elements on uniform grids ranging from $256^2$ to $1024^2$ elements. Testing was conducted on the Delta supercomputer at NCSA, utilizing NVIDIA A100 GPUs and AMD 7763 CPUs to compare cross-architecture performance.
Key Results and Discussion
The experimental results highlight a significant "hardware-algorithm mismatch." While Vanka relaxation is often up to 100% slower than the Braess-Sarazin method on CPUs due to its patch-based logic, it becomes the superior choice on GPUs. The tuned Vanka implementation on the GPU was more than 23 times faster than its CPU counterpart.
On the GPU, monolithic multigrid with Vanka relaxation outperformed the popular Braess-Sarazin method by over 20%. This performance gain is attributed to both faster per-iteration execution and better convergence properties; Vanka typically required one fewer iteration to reach the desired tolerance. Roofline analysis confirmed that the optimized kernels for the domain interior operate near peak performance for their specific arithmetic intensity, proving that effective memory management is the key to modern solver performance.
Conclusion and Future Work
This research demonstrates that exploiting mesh structure can transform a mathematically robust but computationally expensive algorithm into a high-performance GPU kernel. However, the current implementation is limited to structured, uniform grids. Future work will explore strategies for unstructured meshes, which are necessary for complex engineering geometries, and investigate scaling the solver to multi-node, multi-GPU systems using MPI. Additionally, the authors plan to extend these techniques to non-linear problems, such as the Navier-Stokes equations.
Summary updated