arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03754math.OC
收藏

基于GPU的块三对角矩阵Cholesky因子分解

GPU-Accelerated Cholesky Factorization of Block Tridiagonal Matrices

EPFL(洛桑联邦理工学院)

Roland Schwan, Daniel Kuhn, Colin N. Jones

AI总结:

本文提出一种基于GPU的块三对角矩阵Cholesky因子分解方法,通过多阶段排列策略将计算复杂度降低至对数级别,实现高效求解结构线性系统。

摘要:

本文提出了一种基于GPU的框架,用于解决在工程和科学计算中自然出现的块三对角线性系统。通过基于嵌套分解的多阶段排列策略,我们将顺序Cholesky因子分解的计算复杂度从$\mathcal{O}(Nn^3)$降低到$\mathcal{O}(\log_2(N)n^3)$,当有足够的并行资源时。该算法使用NVIDIA的Warp库和CUDA来利用因子分解算法中的多级并行性。我们的实现比稀疏求解器QDLDL快超过100倍,比使用BLASFEO的高性能CPU实现快25倍,比NVIDIA的CUDSS库快超过2倍。对时间长度的对数缩放使这种方法在实时应用中的长时间 horizon 问题特别有吸引力。在NVIDIA GPU上的全面数值实验展示了在不同问题规模和精度下的实际有效性。该框架为机器人、自主系统和其他需要重复求解结构线性系统领域中的GPU加速优化求解器提供了基础。该实现是开源的,可在https://github.com/PREDICT-EPFL/socu上获得。

英文摘要:

This paper presents a GPU-accelerated framework for solving block tridiagonal linear systems that arise naturally in numerous real-time applications across engineering and scientific computing. Through a multi-stage permutation strategy based on nested dissection, we reduce the computational complexity from $\mathcal{O}(Nn^3)$ for sequential Cholesky factorization to $\mathcal{O}(\log_2(N)n^3)$ when sufficient parallel resources are available, where $n$ is the block size and $N$ is the number of blocks. The algorithm is implemented using NVIDIA's Warp library and CUDA to exploit parallelism at multiple levels within the factorization algorithm. Our implementation achieves speedups exceeding 100x compared to the sparse solver QDLDL, 25x compared to a highly optimized CPU implementation using BLASFEO, and more than 2x compared to NVIDIA's CUDSS library. The logarithmic scaling with horizon length makes this approach particularly attractive for long-horizon problems in real-time applications. Comprehensive numerical experiments on NVIDIA GPUs demonstrate the practical effectiveness across different problem sizes and precisions. The framework provides a foundation for GPU-accelerated optimization solvers in robotics, autonomous systems, and other domains requiring repeated solution of structured linear systems. The implementation is open-source and available at https://github.com/PREDICT-EPFL/socu.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑