arXiv:2610.25058cs.DCOct 2026

Manuscript Offprint

arXiv:2610.25058

Triple Overlap in Pipelined Krylov Methods on Multi-GPU Systems

Sinan Ekmekçibaşı, James D. Trotter, Johannes Langguth, Xing Cai, Didem Unat

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sinan Ekmekçibaşı

Koç University

Istanbul, Turkey

sekmekcibasi23@ku.edu.tr

James D. Trotter

Simula Research Laboratory

Oslo, Norway

james@simula.no

Johannes Langguth

Simula Research Laboratory, Oslo, Norway

University of Bergen, Bergen, Norway

langguth@simula.no

Xing Cai

University of Oslo, Oslo, Norway

Simula Research Laboratory, Oslo, Norway

xingca@ifi.uio.no

Didem Unat

Koç University

Istanbul, Turkey

dunat@ku.edu.tr

Abstract—We introduce a novel triple-overlap implementation of the pipelined preconditioned conjugate gradient (Pipe-PCG) and pipelined stabilized biconjugate gradient (Pipe-BiCGStab) solvers, methods widely used in scientific applications. By leveraging a collective communication library, our approach extends conventional computation–communication overlap to concurrently execute collective operations, irregular P2P communication, and compute kernels, enabling computation–communication–communication overlap across multiple GPUs. We evaluate the design on the MareNostrum 5 (H100) and Leonardo (A100) supercomputers, comparing against PETSc and the state-of-the-art two-stream NCCL implementation using SuiteSparse matrices and three massive instances scaled up to 512 GPUs. The three-stream design outperforms the two-stream baseline on every instance, with the margin widening from 2–6% at 4 GPUs to 18–47% at 64 GPUs. At 64 GPUs, the geometric-mean speedup over the two-stream baseline is 1.33× on MareNostrum 5 and 1.23× on Leonardo for Pipe-PCG, and reaches 1.30× for Pipe-BiCGStab. In large scale experiments, we observed a speedup up to 35% in Pipe-PCG and up to 33% in Pipe-BiCGStab compared to two-stream design. For PETSc, the margin is even wider, up to 3.27x speed-up in both Pipe-PCG and Pipe-BiCGStab. Related code for the proposed method is available online: https://github.com/ParCoreLab/aCG

Index Terms—Parallel processing, pipeline processing, iterative methods, sparse matrices, graphics processing units, parallel algorithms

I. INTRODUCTION

Overlapping communication with computation is a well-established approach to reducing communication cost. A common example is the use of non-blocking send and/or receive operations to initiate individual message transfers, typically between neighboring processes to exchange halo data [1], [2]. When these messages make progress in the background, computation can proceed concurrently. This strategy is effective in both multi-CPU and multi-GPU settings. On CPUs, message progression relies on dedicated communication threads [3] or advanced MPI implementations [4]. On GPUs, overlap is typically realized with two concurrent streams, one for communication and one for computation [5], [6].

The conjugate gradient (CG) method [7], its preconditioned (PCG) variants and pipelined stabilized biconjugate gradient (Pipe-BiCGStab) methods are canonical Krylov subspace solvers for sparse linear systems, which makes them a central building block in large-scale scientific applications. Prior work on communication overlap in CG has largely treated its two communication types separately: global collective communication needed for parallelizing dot products and point-to-point (P2P) halo exchange in distributed sparse matrix-vector multiplications (SpMV). The literature on pipelined Krylov methods addresses the former to lower the global synchronization overhead, by overlapping non-blocking reductions with the SpMV and preconditioner operations, and this idea is further extended through deeper pipelines or fewer reductions per iteration [8]–[11]. The pipelined CG algorithm first presented in [8] is theoretically capable of overlapping both collective and P2P communication with computation. The authors of that work, however, focused only on hiding collective operations.

A separate line of work targets overlapping halo/P2P data exchanges with computation in iterative solvers and multigrid methods, primarily through scheduling and implementation techniques, such as specialized OpenMP threads [12], [13]. On GPUs, recent efforts improve the communication path through multi-GPU SpMV overlap, persistent kernels, and CPU- or GPU-initiated communication mechanisms [5], [14]–[16]. However, none of these works jointly schedule collective communication, halo exchange, and computation as concurrent components of a single design.

In this work, we show that pipelined Krylov subspace solvers such as Pipe-PCG and Pipe-BiCGStab offer richer overlap opportunities than previously exploited. Beyond the traditional communication-computation overlap, they naturally allow communication-communication overlap, where collective reductions and P2P halo exchanges proceed concurrently alongside computation. To exploit this, we propose a novel three-stream implementation of Pipe-PCG and Pipe-BiCGStab that overlaps three components: collective reduction, halo exchange, and SpMV. Our design builds on the NVIDIA Col-lective Communication Library (NCCL) [17], which provides native stream support for GPU communication.

Our contributions are as follows:

• We propose a three-stream overlap strategy for pipelined preconditioned CG and pipelined BiCGStab solvers that concurrently overlaps collective communication, P2P communication, and computation.

• We evaluate our three-stream strategy against PETSc and a two-stream baseline [5]. Over this baseline, we achieve up to 35% (Leonardo, 256 GPUs) and 44% (MareNostrum 5, 64 GPUs) speedups for Pipe-PCG, with similar peak gains of 33% (MareNostrum 5, 256 GPUs) and 42% (MareNostrum 5, 64 GPUs) for Pipe-BiCGStab compared to two-stream baseline.

Beyond Pipe-PCG and Pipe-BiCGStab, the three-stream design can be generalized to any application combining high-bandwidth local data exchange with high-latency global coordination (e.g., convergence checks or global updates).