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

SpComm3D:在3D稀疏内核中实现稀疏通信的框架

SpComm3D: A Framework for Enabling Sparse Communication in 3D Sparse Kernels

Nabil Abubaker, Torsten Hoefler

AI总结:

SpComm3D框架通过稀疏感知通信和最小内存占用提升3D稀疏内核的可扩展性,在SDDMM和SpMM上相比现有方法实现最高20倍性能改进。

摘要:

现有的面向分布式内存稀疏内核的3D算法由于依赖与稀疏性无关的批量通信,可扩展性受限。虽然与稀疏性无关的通信更易于使用,但它会导致不必要的带宽和内存消耗。我们提出了SpComm3D,这是一个实现稀疏感知通信和最小内存占用的框架,从而不会通信或存储任何不必要的数据。SpComm3D以最小甚至无通信缓冲区的方式高效执行稀疏通信,以进一步降低内存消耗。SpComm3D将每个处理器上的本地计算与通信解耦,从而可以灵活选择最佳的加速计算版本。我们利用SpComm3D为两个重要的稀疏机器学习内核构建了3D算法:采样稠密-稠密矩阵乘法(SDDMM)和稀疏矩阵-矩阵乘法(SpMM)。在多达1800个处理器上的实验评估表明,SpComm3D具有卓越的可扩展性,并且在SDDMM和SpMM的通信、内存和运行时间方面,以最高20倍的改进超越了最先进的与稀疏性无关的方法。代码可在以下地址获取:https://github.com/nfabubaker/SpComm3D

英文摘要:

Existing 3D algorithms for distributed-memory sparse kernels suffer from limited scalability due to reliance on bulk sparsity-agnostic communication. While easier to use, sparsity-agnostic communication leads to unnecessary bandwidth and memory consumption. We present SpComm3D, a framework for enabling sparsity-aware communication and minimal memory footprint such that no unnecessary data is communicated or stored in memory. SpComm3D performs sparse communication efficiently with minimal or no communication buffers to further reduce memory consumption. SpComm3D detaches the local computation at each processor from the communication, allowing flexibility in choosing the best accelerated version for computation. We build 3D algorithms with SpComm3D for the two important sparse ML kernels: Sampled Dense-Dense Matrix Multiplication (SDDMM) and Sparse matrix-matrix multiplication (SpMM). Experimental evaluations on up to 1800 processors demonstrate that SpComm3D has superior scalability and outperforms state-of-the-art sparsity-agnostic methods with up to 20x improvement in terms of communication, memory, and runtime of SDDMM and SpMM. The code is available at: https://github.com/nfabubaker/SpComm3D

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

↑