Affiliation:
1. Sandia National Laboratories
2. Lawrence Berkeley National Laboratory, Berkeley, CA
3. New York University, New York, NY
4. Hebrew University, Jerusalem, Israel
Abstract
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 nonzero structure dependent, meaning that we seek the best algorithm for the given input matrices.
In addition to our three-dimensional fine-grained model, we also propose coarse-grained one-dimensional and two-dimensional 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.
Funder
HUJI Cyber Security Research Center in conjunction with the Israel National Cyber Bureau in the Prime Minister's Office
Sandia National Laboratories Truman Fellowship
United States-Israel Binational Science Foundation
National Security Science and Engineering
Intel Collaborative Research Institute for Computational Intelligence
Operator of Sandia National Laboratories
Ministry of Science and Technology, Israel
Einstein Foundation and the Minerva Foundation
Sandia Corporation
Israel Academy of Sciences and Humanities
U.S. Department of Energy
Israel Science Foundation
PetaCloud industry-academia consortium
Publisher
Association for Computing Machinery (ACM)
Subject
Computational Theory and Mathematics,Computer Science Applications,Hardware and Architecture,Modeling and Simulation,Software
Cited by
22 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献