Hypergraph Partitioning for Sparse Matrix-Matrix Multiplication

Author:

Ballard Grey1,Druinsky Alex2,Knight Nicholas3,Schwartz Oded4

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 19 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. wrBench: Comparing Cache Architectures and Coherency Protocols on ARMv8 Many-Core Systems;Journal of Computer Science and Technology;2023-11-30

2. Communication Lower Bounds for Nested Bilinear Algorithms via Rank Expansion of Kronecker Products;Foundations of Computational Mathematics;2023-11-06

3. A Systematic Survey of General Sparse Matrix-matrix Multiplication;ACM Computing Surveys;2023-03-02

4. Introduction;Artificial Intelligence: Foundations, Theory, and Algorithms;2023

5. Hypergraph Cuts with General Splitting Functions;SIAM Review;2022-08

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3