Multiple Right-Hand Sides and Multi-GPU CUDA Implementations of the Tridiagonal Partition Method

22 Jun 2026, 17:05
15m
Room 406 (MLIT)

Room 406

MLIT

Numerical and analytical calculations in modern mathematical physics Numerical and analytical calculations in modern mathematical physics

Speaker

Ms Milena Veneva (RIKEN)

Description

The parallel partition algorithm for solving systems of linear algebraic equations (SLAEs) with tridiagonal coefficient matrices proposed in [1] represents a conceptually simple yet highly efficient numerical method. It operates by decomposing the original matrix into smaller sub-matrices, thereby enabling the concurrent solution of smaller SLAEs. The algorithm was originally designed for execution on systems with a large number of processors and accordingly, the computational experiments reported in [1] use up to 250 processors.

There exists a class of problems which requires solving a series of tridiagonal SLAEs with the same coefficient matrix, but different right-hand sides (RHSs). For instance, problems discretized by the finite-difference methods, and computations of cubic and B-splines, where the RHS changes for each fit. These systems are normally solved in a batch fashion. The big computational intensity of the task justifies the usage of GPUs for its solution. Here, we are going to present our CUDA multiple RHSs implementation of the partition method. A discussion for the difference between an aggregate and an interleaved data storage format for the RHSs is made. Computational experiments for different SLAE sizes with different number of RHSs are conducted. The obtained results are compared with the cuSPARSE multiple right-hand sides solver gtsv2_nopivot.

The tridiagonal partition algorithm contains sufficient parallelism to justify the usage of multiple GPUs to improve performance, and/or to help handling SLAEs which are too big to be solved on a single GPU due to global memory limitations. A multi-GPU CUDA implementation and a multi-GPU recursive CUDA implementation of the partition method are made. The usage of pageable vs. pinned memory is investigated. Computational experiments on one and two GPU cards, for different SLAE sizes and with different number of recursive steps are conducted. The findings regarding the optimal number of recursions for single-GPU execution, as discussed in [2], remain valid in the context of dual-GPU execution. The efficiency of the recursive partition method when moving from one to two devices is computed and discussed.

[1] T. M. Austin, M. Berndt, and J. D. Moulton, A Memory Efficient Parallel Tridiagonal Solver, Preprint LA-VR-03-4149 (2004) 13 p.

[2] M. Veneva, ML-Based Optimum Sub-system Size for the GPU Implementation of the Tridiagonal Partition Method, Moscow University Physics Bulletin. Machine Learning in Fundamental Physics, 80 (3, Suppl.), pp. S1085--S1095, doi: 10.3103/S0027134925703138, arxiv: 2510.27351 [cs.DC] (2025).

Author

Ms Milena Veneva (RIKEN)

Presentation materials