Design and Implementation of Adaptive SpMV Library for Multicore and Many-Core Architecture

Author:

Tan Guangming1,Liu Junhong1,Li Jiajia2

Affiliation:

1. State Key Laboratory of Computer Architecture, Institute of Computing Technology, Chinese Academy of Sciences, University of Chinese Academy of Sciences, Beijing, China

2. Computational Science and Engineering, Georgia Institute of Technology, North Avenue, Atlanta, GA, US

Abstract

Sparse matrix vector multiplication (SpMV) is an important computational kernel in traditional high-performance computing and emerging data-intensive applications. Previous SpMV libraries are optimized by either application-specific or architecture-specific approaches but present difficulties for use in real applications. In this work, we develop an auto-tuning system (SMATER) to bridge the gap between specific optimizations and general-purpose use. SMATER provides programmers a unified interface based on the compressed sparse row (CSR) sparse matrix format by implicitly choosing the best format and fastest implementation for any input sparse matrix during runtime. SMATER leverages a machine-learning model and retargetable back-end library to quickly predict the optimal combination. Performance parameters are extracted from 2,386 matrices in the SuiteSparse matrix collection. The experiments show that SMATER achieves good performance (up to 10 times that of the Intel Math Kernel Library (MKL) on Intel E5-2680 v3) while being portable on state-of-the-art x86 multicore processors, NVIDIA GPUs, and Intel Xeon Phi accelerators. Compared with the Intel MKL library, SMATER runs faster by more than 2.5 times on average. We further demonstrate its adaptivity in an algebraic multigrid solver from the Hypre library and report greater than 20% performance improvement.

Funder

National Natural Science Foundation of China

National Key Research and Development Program of China

Publisher

Association for Computing Machinery (ACM)

Subject

Applied Mathematics,Software

Reference60 articles.

1. RuleQuest Research. 2012. Data Mining Tools See5 and C5.0. Retrieved from http://www.rulequest.com/see5-info.html. RuleQuest Research. 2012. Data Mining Tools See5 and C5.0. Retrieved from http://www.rulequest.com/see5-info.html.

2. Intel. 2017. Intel Math Kernel Library. Retrieved from http://software.intel.com/en-us/intel-mkl. Intel. 2017. Intel Math Kernel Library. Retrieved from http://software.intel.com/en-us/intel-mkl.

3. PetaBricks

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

1. Morpheus: A library for efficient runtime switching of sparse matrix storage formats;SoftwareX;2024-09

2. Towards Dynamic Autotuning of SpMV in CUSP Library;2024 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW);2024-05-27

3. Efficiently Running SpMV on Multi-Core DSPs for Block Sparse Matrix;2023 IEEE 29th International Conference on Parallel and Distributed Systems (ICPADS);2023-12-17

4. DASP: Specific Dense Matrix Multiply-Accumulate Units Accelerated General Sparse Matrix-Vector Multiplication;Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis;2023-11-11

5. HASpMV: Heterogeneity-Aware Sparse Matrix-Vector Multiplication on Modern Asymmetric Multicore Processors;2023 IEEE International Conference on Cluster Computing (CLUSTER);2023-10-31

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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