ACM Transactions on Mathematical Software

A Unified Mixed-Precision Framework for Batched Iterative Solvers on GPUs

Pratik Nayak, Hartwig Anzt

Key points

From the paper's conclusion
  • We present a unified mixed-precision framework in Ginkgo with two complementary schemes.

Abstract

Ginkgo 's batched iterative solvers handle independent linear systems of varying conditioning at a single, pessimistic working precision. This causes unnecessary memory traffic on well-conditioned items and limits accuracy on stiff ones. We present a unified mixed-precision framework in Ginkgo with two complementary schemes. Low-precision matrix storage ( StorageLP ) lowers matrix-read memory traffic while keeping working-precision arithmetic. Fused two-precision iterative refinement ( FusedIR ) puts a low-precision inner Conjugate Gradient loop and a high-precision outer correction in one shared-memory GPU kernel, with per-item early termination. The framework spans the CUDA, HIP and OpenMP backends and integrates into Sundials ARKStep . On an NVIDIA GH200 and at the same working precision, StorageLP reduces the linear-solve time of batched shifted Poisson problems, at matched true residual by about \(12\%\) with FP32 storage and \(7\%\) with FP16 or BF16. In a batched heat equation the linear solves need few iterations, so StorageLP gives no gain, while FusedIR is the fastest scheme inside the solver for all but the smallest items, from on-chip residency. The FP32 build of the whole integrator is about \(1.6\times\) faster, from the working precision, not the framework. FusedIR reaches FP64 accuracy with an FP32 inner solve, beyond the limiting accuracy of StorageLP .

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers