ASA: A ccelerating S parse A ccumulation in Column-wise SpGEMM

Author:

Zhang Chao1ORCID,Bremer Maximilian2ORCID,Chan Cy2ORCID,Shalf John2ORCID,Guo Xiaochen1ORCID

Affiliation:

1. Lehigh University

2. Lawrence Berkeley National Laboratory

Abstract

Sparse linear algebra is an important kernel in many different applications. Among various sparse general matrix-matrix multiplication (SpGEMM) algorithms, Gustavson’s column-wise SpGEMM has good locality when reading input matrix and can be easily parallelized by distributing the computation of different columns of an output matrix to different processors. However, the sparse accumulation (SPA) step in column-wise SpGEMM, which merges partial sums from each of the multiplications by the row indices, is still a performance bottleneck. The state-of-the-art software implementation uses a hash table for partial sum search in the SPA, which makes SPA the largest contributor to the execution time of SpGEMM. There are three reasons that cause the SPA to become the bottleneck: (1) hash probing requires data-dependent branches that are difficult for a branch predictor to predict correctly; (2) the accumulation of partial sum is dependent on the results of the hash probing, which makes it difficult to hide the hash probing latency; and (3) hash collision requires time-consuming linear search and optimizations to reduce these collisions require an accurate estimation of the number of non-zeros in each column of the output matrix. This work proposes ASA architecture to accelerate the SPA. ASA overcomes the challenges of SPA by (1) executing the partial sum search and accumulate with a single instruction through ISA extension to eliminate data-dependent branches in hash probing, (2) using a dedicated on-chip cache to perform the search and accumulation in a pipelined fashion, (3) relying on the parallel search capability of a set-associative cache to reduce search latency, and (4) delaying the merging of overflowed entries. As a result, ASA achieves an average of 2.25× and 5.05× speedup as compared to the state-of-the-art software implementation of a Markov clustering application and its SpGEMM kernel, respectively. As compared to a state-of-the-art hashing accelerator design, ASA achieves an average of 1.95× speedup in the SpGEMM kernel.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference61 articles.

1. Exploiting Multiple Levels of Parallelism in Sparse Matrix-Matrix Multiplication

2. HipMCL: a high-performance parallel implementation of the Markov clustering algorithm for large-scale networks

3. Cyber-physical systems;Baheti Radhakisan;Impact Contr. Technol.,2011

4. CACTI 7

5. Social networks;Banks David L.;Encyc. Quantit. Risk Anal. Assess.,2008

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. SpDCache: Region-Based Reduction Cache for Outer-Product Sparse Matrix Kernels;2024 IEEE 35th International Conference on Application-specific Systems, Architectures and Processors (ASAP);2024-07-24

2. Dedicated Hardware Accelerators for Processing of Sparse Matrices and Vectors: A Survey;ACM Transactions on Architecture and Code Optimization;2024-02-15

3. Fast Community Detection in Graphs with Infomap Method using Accelerated Sparse Accumulation;2023 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW);2023-05

4. HIRAC: A Hierarchical Accelerator with Sorting-based Packing for SpGEMMs in DNN Applications;2023 IEEE International Symposium on High-Performance Computer Architecture (HPCA);2023-02

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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