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

稀疏矩阵-矩阵乘法的超图划分

Hypergraph Partitioning for Sparse Matrix-Matrix Multiplication

Grey Ballard, Alex Druinsky, Nicholas Knight, Oded Schwartz

摘要:

稀疏矩阵-矩阵乘法(SpGEMM)是科学计算和数据分析中的一个关键计算核心,其性能往往受通信约束,本文提出了一种细粒度超图模型.该模型正确地描述了并行计算中沿关键路线的处理器间通信量和顺序计算中通过存储层次结构移动的数据量。我们发现,确定特定的输入矩阵的通信最优算法是等价于解决超图划分问题。我们的方法是稀疏依赖的,这意味着我们寻求最好的算法给定的输入矩阵。除了我们的(3D)细粒度模型,我们还提出了粗粒度的1D和2D模型,对应于更简单的SpGEMM算法。我们从理论上探讨我们的模型之间的关系,我们研究他们的性能实验的背景下,使用SpGEMM作为一个关键计算的应用程序。对于每个应用程序,我们发现,至少有一个粗粒度的模型是通信效率的细粒度的模型。我们还观察到,不同的应用程序有不同的算法的亲和力。我们的研究结果表明,超图是一个准确的模型推理的通信成本的SpGEMM以及探索SpGEMM算法设计空间的实用工具。

英文摘要:

We propose a fine-grained hypergraph model for sparse matrix-matrix multiplication (SpGEMM), a key computational kernel in scientific computing and data analysis whose performance is often communication bound. This model correctly describes both the interprocessor communication volume along a critical path in a parallel computation and also the volume of data moving through the memory hierarchy in a sequential computation. We show that identifying a communication-optimal algorithm for particular input matrices is equivalent to solving a hypergraph partitioning problem. Our approach is sparsity dependent, meaning that we seek the best algorithm for the given input matrices. In addition to our (3D) fine-grained model, we also propose coarse-grained 1D and 2D models that correspond to simpler SpGEMM algorithms. We explore the relations between our models theoretically, and we study their performance experimentally in the context of three applications that use SpGEMM as a key computation. For each application, we find that at least one coarse-grained model is as communication efficient as the fine-grained model. We also observe that different applications have affinities for different algorithms. Our results demonstrate that hypergraphs are an accurate model for reasoning about the communication costs of SpGEMM as well as a practical tool for exploring the SpGEMM algorithm design space.

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

↑