arrow
返回

A Comprehensive Performance Model of Sparse Matrix-Vector Multiplication to Guide Kernel Optimization

delete2023-02-01
delete8
PRE
AI
夏
夏天 (Tian Xia) *
G
Gelin Fu
C
Chenyang Li
L
Lucheng Zhang
R
Ruiyang Chen
W
Wenzhe Zhao
N
Nanning Zheng
任
任鹏举 (Pengju Ren)
DOI:10.1109/TPDS.2022.3225230delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Sparse Matrix-Vector Multiplication (SpMV) is important in scientific and industrial applications and remains a well-known challenge for modern CPUs due to high sparsity and irregularity. Many researchers try to improve SpMV performance by designing dedicated data formats and computation patterns. However, out-of-order superscalar CPUs have complex micro-architectures where exist complicated interactions and restrictions among software and hardware factors. It is hard to systematically study the effectiveness of optimization methods on the overall performance, as its benefits may be undermined by other factors. In this paper, we thoroughly study the execution of SpMV on modern CPUs and propose a comprehensive performance model to reveal the critical factors and their relationships. Specifically, we first study the coding characteristics of SpMV kernels to identify key factors worthy of attention. Then we model the execution of SpMV as two overlapped parts: CPU pipeline and memory latency. Both are carefully modeled with related hardware and software factors. We also model SIMD performance with the usage of specific SIMD instructions and vector registers. Experiments show that our model matches the actual execution of real-world processors. Guided by the model, we propose SpV8, a novel SpMV kernel that optimizes critical factors to improve computation efficiency and memory bandwidth. Experiments on Intel/AMD x86 and ARM AArch64 platforms show that SpV8 outperforms several state-of-the-art approaches with large margins, achieving average 3.4x over Intel Math Kernel Library and 1.4x over the best existing approach. Such results indicate that the proposed model is capable of valuable guidance for efficient SpMV optimizations.
Keyword:
Optimization
performance model
sparse-vector matrix multiplication
SIMD

期刊

IEEE Transactions on Parallel and Distributed Systems 封面图
IEEE Transactions on Parallel and Distributed Systems
IF:
6
论文数:
5.2K
被引数:
1.1W

机构

X
xi'an jiaotong university
学者数:
9.3W
论文数: 6.7W
被引数: 75
引用论文

引用论文

err分享
err收藏
err分享
err收藏
err分享
err收藏
Temporally dissociable effects of ketamine on neuronal discharge and gamma oscillations in rat thalamo-cortical networks
err2018-07-01
err0
errOAAI
errMaria Amat-Foraster; Anders A. Jensen; Niels Plath; Kjartan F. Herrik; Pau Celada; Francesc Artigas
err分享
err收藏
Constriction Factor Particle Swarm Optimization based load balancing and cell association for 5G heterogeneous networks
err2021-12-01
err0
PREAI
errMohammad Kamrul Hasan; Teong Chee Chuah; Ayman A. El-Saleh; Muhammad Shafiq; Shoaib Ahmed Shaikh; Shayla Islam; Moez Krichen
err分享
err收藏
Distinct Age-Dependent C Fiber-Driven Oscillatory Activity in the Rat Somatosensory Cortex
err2020-08-05
err0
errOAAI
errPishan Chang; Lorenzo Fabrizi; Maria Fitzgerald
err分享
err收藏
err分享
err收藏
Higher order pulse modulators for time domain chipless RFID tags with increased information density
err2015-09-01
err0
PREAI
errChristian Mandel; Martin Schubler; Matthias Nickel; Bernd Kubina; Rolf Jakoby; Maximilian Popperl; Martin Vossiek
err分享
err收藏
学者 查看更多内容