arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.19004cs.DCcs.MS
收藏

Ocean: 基于快速估计的GPU上稀疏通用矩阵-矩阵乘法

Ocean: Fast Estimation-Based Sparse General Matrix-Matrix Multiplication on GPU

Cornell University(康奈尔大学)

Yifan Li, Giulia Guidi

AI总结:

本文提出基于估计的SpGEMM方法,通过轻量级HyperLogLog估计器和动态分析策略优化GPU性能,实现1.4x-2.8x的加速。

摘要:

在计算科学和数据分析中,许多工作负载涉及不规则和稀疏计算,这对现代硬件优化极具挑战性。关键内核是稀疏通用矩阵-矩阵乘法(SpGEMM),它支撑着模拟、图分析和机器学习应用。SpGEMM表现出不规则内存访问模式和工作负载不平衡,使在GPU上实现高性能极具挑战性。当前GPU SpGEMM解决方案通常依赖于两步工作流来解决负载不平衡和减少内存访问。符号步骤确定每行输出元素的数量,平均占总运行时间的28%。本文质疑符号计算的必要性,并引入基于估计的SpGEMM工作流。我们的方法用轻量级HyperLogLog估计器取代昂贵的符号步骤,结合动态选择最佳工作流的分析策略,并指导累加器配置。此外,我们引入了一种混合累加器设计,包括一种新型基于哈希的累加器,利用共享和全局内存。我们的方法在各种正方形和矩形矩阵上均优于领先的GPU SpGEMM实现,实现了NVIDIA A100和H100架构上的1.4x-2.8x加速。

英文摘要:

In computational science and data analytics, many workloads involve irregular and sparse computations that are inherently difficult to optimize for modern hardware. A key kernel is Sparse General Matrix-Matrix Multiplication (SpGEMM), which underpins simulations, graph analytics, and machine learning applications. SpGEMM exhibits irregular memory access patterns and workload imbalance, making it challenging to achieve high performance on GPUs. Current GPU SpGEMM solutions typically rely on a two-pass workflow to address load imbalance and reduce memory access. The symbolic pass, which determines the number of output elements per row, accounts for roughly 28% of the total runtime on average. In this work, we question the necessity of exact symbolic computation and introduce an estimation-based SpGEMM workflow. Our approach replaces the costly symbolic step with lightweight HyperLogLog estimators, combined with an analysis strategy that dynamically selects the optimal workflow and guides accumulator configuration. In addition, we introduce a hybrid accumulator design, including a novel hash-based accumulator that leverages both shared and global memory. Our approach consistently outperforms leading GPU SpGEMM implementations across a wide range of both square and rectangular matrices, achieving speedups of 1.4x-2.8x on NVIDIA A100 and H100 architectures.

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

↑