Eliminating Non-Associative Floating-Point Drift in Multi-GPU Krylov Solvers
H. Chen (DoPhys Zurich), M. Lindqvist (ETH Zurich / DoPhys), S. K. Venkatesh (DoPhys Boston)
Abstract: In distributed-memory Krylov subspace solvers ($\text{FGMRES}$, $\text{BiCGSTAB}$), global inner products $\langle \mathbf{u}, \mathbf{v} \rangle = \sum_{i=1}^N u_i v_i$ are evaluated via warp-level shuffle reductions followed by MPI $\text{AllReduce}$ trees. Because IEEE-754 floating-point addition $\mathbf{fl}(a \oplus b)$ is non-associative, thread scheduling jitter and changes in domain decomposition $P$ introduce $\mathcal{O}(N \epsilon_{\text{mach}})$ rounding discrepancies. In chaotic or stiffly coupled multiphysics systems, these perturbations grow as $\exp(\lambda_{\max} t)$, violating strict bit-reproducibility requirements in aerospace hardware-in-the-loop ($\text{HIL}$) certification.
Mathematical Formulation & Super-Accumulator Architecture: Every IEEE-754 binary64 product $p_i = u_i \cdot v_i$ (computed exactly via fused multiply-add splitting $p_i = h_i + l_i$ with $h_i = \mathbf{fl}(u_i v_i)$ and $l_i = \mathbf{fma}(u_i, v_i, -h_i)$) has an exact binary representation within the exponent range $[2^{-1074}, 2^{1024})$. We map each exact product into a thread-block-shared Kulisch fixed-point accumulator $\mathcal{A} \in \mathbb{Z}$ comprising $W = 34$ unsigned 64-bit words ($2176\text{ bits}$ total, including $80\text{ carry-guard bits}$):
Let $\Omega = \bigsqcup_{k=1}^{P} \Omega_k$ be an arbitrary disjoint partitioning of degrees of freedom across $P$ MPI ranks. Each product $u_i v_i = (-1)^{s_i} m_i 2^{e_i - 52}$ is bit-shifted into word index $w_i = \lfloor (e_i + 1074)/64 \rfloor$ with bit offset $b_i = (e_i + 1074) \bmod 64$:
When embedded inside Classical Gram-Schmidt with re-orthogonalization ($\text{CGS2}$), the Arnoldi basis $\mathbf{V}_m = [\mathbf{v}_1, \dots, \mathbf{v}_m]$ satisfies the partition-invariant loss-of-orthogonality bound:
@techreport{chen2025deterministic,
title = {Eliminating Non-Associative Floating-Point Drift in Multi-GPU Krylov Solvers},
author = {Chen, Haoran and Lindqvist, Marcus and Venkatesh, S. K.},
institution = {DoPhys Research Labs},
number = {TR-2025-04},
year = {2025},
month = {October},
url = {https://dophys.top/research.html#tr-2025-04}
}