Leveraging Memory Copy Overlap for Efficient Sparse Matrix-Vector Multiplication on GPUs

Author:

Zeng Guangsen1ORCID,Zou Yi1ORCID

Affiliation:

1. School of Microelectronics, South China University of Technology, Guangzhou 510641, China

Abstract

Sparse matrix-vector multiplication (SpMV) is central to many scientific, engineering, and other applications, including machine learning. Compressed Sparse Row (CSR) is a widely used sparse matrix storage format. SpMV using the CSR format on GPU computing platforms is widely studied, where the access behavior of GPU is often the performance bottleneck. The Ampere GPU architecture recently from NVIDIA provides a new asynchronous memory copy instruction, memcpy_async, for more efficient data movement in shared memory. Leveraging the capability of this new memcpy_async instruction, we first propose the CSR-Partial-Overlap to carefully overlap the data copy from global memory to shared memory and computation, allowing us to take full advantage of the data transfer time. In addition, we design the dynamic batch partition and the dynamic threads distribution to achieve effective load balancing, avoid the overhead of fixing up partial sums, and improve thread utilization. Furthermore, we propose the CSR-Full-Overlap based on the CSR-Partial-Overlap, which takes the overlap of data transfer from host to device and SpMV kernel execution into account as well. The CSR-Full-Overlap unifies the two major overlaps in SpMV and hides the computation as much as possible in the two important access behaviors of the GPU. This allows CSR-Full-Overlap to achieve the best performance gains from both overlaps. As far as we know, this paper is the first in-depth study of how memcpy_async can be potentially applied to help accelerate SpMV computation in GPU platforms. We compare CSR-Full-Overlap to the current state-of-the-art cuSPARSE, where our experimental results show an average 2.03x performance gain and up to 2.67x performance gain.

Funder

SCUT Research Startup Fund

Guangzhou Huangpu District International Research Collaboration Fund

Publisher

MDPI AG

Subject

Electrical and Electronic Engineering,Computer Networks and Communications,Hardware and Architecture,Signal Processing,Control and Systems Engineering

Reference23 articles.

1. Asanovic, K., Bodik, R., Catanzaro, B.C., Gebis, J.J., Husbands, P., Keutzer, K., Patterson, D.A., Plishker, W.L., Shalf, J., and Williams, S.W. (2006). The Landscape of Parallel Computing Research: A View from Berkeley, EECS Department, University of California. Technical Report UCB/EECS-2006-183.

2. The University of Florida Sparse Matrix Collection;Davis;ACM Trans. Math. Softw.,2011

3. Efficient implementation of Jacobi iterative method for large sparse linear systems on graphic processing units;Ahamed;J. Supercomput.,2016

4. Gilbert, J.R., Reinhardt, S., and Shah, V.B. (2006, January 18–21). High-performance graph algorithms from parallel sparse matrices. Proceedings of the Name of the 8th International Workshop (PARA 2006), Umea, Sweden.

5. Yang, X., Parthasarathy, S., and Sadayappan, P. (2011). Fast sparse matrix-vector multiplication on GPUs: Implications for graph mining. arXiv.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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