arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.12705cs.DCcs.MS
收藏

通过内存感知的凸起追逐加速 GPU 上带状矩阵的双对角化

Accelerating Bidiagonalization of Banded Matrices through Memory-Aware Bulge-Chasing on GPUs

Computer Science & Artificial Intelligence Laboratory, and Department of Mathematics, Massachusetts Institute of Technology(麻省理工学院计算机科学及人工智能实验室和数学系);Computer, Electrical and Mathematical Sciences and Engineering Division, King Abdullah University of Science and Technology(阿卜杜拉国王科技大学计算机、电气和数学科学与工程系)

Evelyne Ringoot, Rabab Alomairy, Alan Edelman

AI总结:

提出首个 GPU 加速的带状矩阵双对角化算法,通过内存感知的凸起追逐优化吞吐量,在多种 GPU 上实现显著加速。

摘要:

带状矩阵到双对角形式的约简是奇异值计算的关键步骤,是科学计算和人工智能的基石。尽管具有内在并行性,但由于其内存受限的特性,传统上认为该步骤不适合 GPU。然而,GPU 架构的最新进展,例如每个流多处理器或计算单元增加的 L1 内存和更大的 L2 缓存,已经改变了这一范式。在这项工作中,我们提出了第一个用于将带状矩阵约简为双对角形式的 GPU 加速算法,并集成到一个开源软件包中。我们的算法建立在先前的多核 CPU 缓存高效凸起追逐方法之上,并适应现代 GPU 架构以优化吞吐量。利用 Julia 的高级数组抽象和此 http URL,我们实现了一个既与硬件无关又感知数据精度的单一函数,可在 NVIDIA、AMD、Intel 和 Apple Metal GPU 上高效运行。我们开发了一个硬件感知的性能模型来指导调优,并识别控制内存受限工作负载在 GPU 上最佳性能的关键超参数。我们表明,经过仔细优化,此类工作负载可以在现代 GPU 上实现显著的加速:我们的实现从 1024x1024 的矩阵大小开始就优于多线程 CPU 库(PLASMA、SLATE),并在 32k x 32k 矩阵上实现了超过 100 倍的加速。此外,该算法的性能随矩阵带宽线性扩展,使得之前被认为不切实际的更大带宽矩阵的约简成为可能。

英文摘要:

The reduction of a banded matrix to bidiagonal form is a critical step in the calculation of Singular Values, a cornerstone of scientific computing and AI. Although inherently parallel, this step has traditionally been considered unsuitable for GPUs due to its memory-bound nature. However, recent advances in GPU architectures, such as increased L1 memory per Streaming Multiprocessor or Compute Unit and larger L2 caches, have shifted this paradigm. In this work, we present the first GPU-accelerated algorithm for reducing a banded matrix to bidiagonal form, integrated into an open-source software package. Our algorithm builds on prior multicore CPU cache-efficient bulge-chasing methods, adapted to modern GPU architectures to optimize throughput. Leveraging Julia's high-level array abstractions and KernelAbstractions.jl, we implement a single function that is both hardware-agnostic and data-precision-aware, running efficiently across NVIDIA, AMD, Intel, and Apple Metal GPUs. We develop a hardware-aware performance model to guide tuning and identify key hyperparameters that govern optimal GPU performance for memory-bound workloads. We show that such workloads, when carefully optimized, can achieve substantial speed-ups on modern GPUs: our implementation outperforms multithreaded CPU libraries (PLASMA,SLATE) starting from matrix sizes as small as 1024x1024, and achieves over 100x speed-up on 32k x 32k matrices. Moreover, the algorithm's performance scales linearly with the matrix bandwidth, enabling efficient reduction of matrices with larger bandwidths, previously considered impractical.

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

↑