arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.08902cs.DC
收藏

HC-SpMM: 利用混合GPU核心加速面向图的稀疏矩阵-矩阵乘法

HC-SpMM: Accelerating Sparse Matrix-Matrix Multiplication for Graphs with Hybrid GPU Cores

Zhonggen Li, Xiangyu Ke, Yifan Zhu, Yunjun Gao, Yaofeng Tu

AI总结:

针对真实图不规则性导致GPU上SpMM效率低的问题,提出HC-SpMM算法,利用混合GPU核心并结合数据划分、核心选择等优化,还集成至GNN流水线,在14个数据集上实现优于现有方案的加速效果。

摘要:

稀疏矩阵-矩阵乘法(SpMM)是图计算与图分析中的基础运算。然而,真实世界图的不规则性给GPU上实现高效的图数据SpMM运算带来了重大挑战。近年来,GPU算力的显著提升以及GPU内部新型高效计算核心的引入为加速提供了新机遇。本文提出HC-SpMM,这是一种开创性算法,利用混合GPU核心(Tensor核心与CUDA核心)加速面向图的SpMM。为适配不同GPU核心的计算特性,我们研究了稀疏图特征对不同核心性能的影响,开发了图邻接矩阵的数据划分技术,并设计了一种新颖的策略,可为每个子矩阵智能选择最高效的核心进行处理。此外,我们还通过考量内存访问与线程利用率对其进行优化,以充分利用计算资源。为支撑复杂的图计算工作负载,我们将HC-SpMM集成到GNN训练流水线中。进一步地,我们提出了一种内核融合策略以增强数据复用,还提出了一种高性价比的图布局重组方法,以缓解真实世界图的不规则与稀疏问题,使其更适配混合GPU核心的计算模型。在14个真实世界图数据集上开展的大量实验表明,HC-SpMM相较于当前最优的SpMM内核与GNN框架,分别实现了1.33倍与1.23倍的平均加速比。

英文摘要:

Sparse Matrix-Matrix Multiplication (SpMM) is a fundamental operation in graph computing and analytics. However, the irregularity of real-world graphs poses significant challenges to achieving efficient SpMM operation for graph data on GPUs. Recently, significant advancements in GPU computing power and the introduction of new efficient computing cores within GPUs offer new opportunities for acceleration. In this paper, we present HC-SpMM, a pioneering algorithm that leverages hybrid GPU cores (Tensor cores and CUDA cores) to accelerate SpMM for graphs. To adapt to the computing characteristics of different GPU cores, we investigate the impact of sparse graph features on the performance of different cores, develop a data partitioning technique for the graph adjacency matrix, and devise a novel strategy for intelligently selecting the most efficient cores for processing each submatrix. Additionally, we optimize it by considering memory access and thread utilization, to utilize the computational resources to their fullest potential. To support complex graph computing workloads, we integrate HC-SpMM into the GNN training pipeline. Furthermore, we propose a kernel fusion strategy to enhance data reuse, as well as a cost-effective graph layout reorganization method to mitigate the irregular and sparse issues of real-world graphs, better fitting the computational models of hybrid GPU cores. Extensive experiments on 14 real-world graph datasets demonstrate that HC-SpMM achieves an average speedup of 1.33x and 1.23x over state-of-the-art SpMM kernels and GNN frameworks.

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

↑