Diagonally‐Addressed Matrix Nicknack: How to improve SpMV performance

Author:

Saak Jens1ORCID,Schulze Jonas1ORCID

Affiliation:

1. Max Planck Institute for Dynamics of Complex Technical Systems Magdeburg Germany

Abstract

AbstractWe suggest a technique to reduce the storage size of sparse matrices at no loss of information. We call this technique Diagonally‐Addressed (DA) storage. It exploits the typically low matrix bandwidth of matrices arising in applications. For memory‐bound algorithms, this traffic reduction has direct benefits for both uni‐precision and multi‐precision algorithms. In particular, we demonstrate how to apply DA storage to the Compressed Sparse Rows (CSR) format and compare the performance in computing the Sparse Matrix Vector (SpMV) product, which is a basic building block of many iterative algorithms. We investigate 1367 matrices from the SuiteSparse Matrix Collection fitting into the CSR format using signed 32 bit indices. More than 95% of these matrices fit into the DA‐CSR format using 16 bit column indices, potentially after Reverse Cuthill‐McKee (RCM) reordering. Using IEEE 754 precision scalars, we observe a performance uplift of 11% (single‐threaded) or 17.5% (multithreaded) on average when the traffic exceeds the size of the last‐level CPU cache. The predicted uplift in this scenario is 20%. For traffic within the CPU's combined level 2 and level 3 caches, the multithreaded performance uplift is over 40% for a few test matrices.

Publisher

Wiley

Subject

Electrical and Electronic Engineering,Atomic and Molecular Physics, and Optics

Reference11 articles.

1. Goumas G. Kourtis K. Anastopoulos N. Karakasis V. &Koziris N.(2008).Understanding the performance of sparse matrix‐vector multiplication. In16th Euromicro Conference on Parallel Distributed and Network‐Based Processing (PDP 2008)IEEE.https://doi.org/10.1109/pdp.2008.41

2. Liu X. Smelyanskiy M. Chow E. &Dubey P.(2013).Efficient sparse matrix‐vector multiplication on x86‐based many‐core processors. Inthe 27th International ACM Conference on International conference on supercomputing (ICS'13).ACM Press.https://doi.org/10.1145/2464996.2465013

3. Intel. (2020).Math Kernel Library v2021.1.https://en.wikipedia.org/wiki/Math_Kernel_Library. Accessed 27 September 2023.

4. Martone M. Filippone S. Tucci S. Paprzycki M. &Ganzha M.(2010).Utilizing recursive storage in sparse matrix‐vector multiplication ‐ preliminary considerationsc. InT.Philips(Ed.) Proceedings of the ISCA 25th International Conference on Computers and Their Applications CATA 2010 March 24‐26 2010 Sheraton Waikiki Hotel Honolulu Hawaii USA.ISCA.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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