Adaptive Optimization of Sparse Matrix-Vector Multiplication on Emerging Many-Core Architectures

被引:11
|
作者
Chen, Shizhao [2 ]
Fang, Jianbin [2 ]
Chen, Donglin [2 ]
Xu, Chuanfu [1 ,2 ]
Wang, Zheng [3 ,4 ,5 ]
机构
[1] China Aerodynam Res & Dev Ctr, State Key Lab Aerodynam, Chengdu, Sichuan, Peoples R China
[2] Natl Univ Def Technol, Coll Comp, Changsha, Hunan, Peoples R China
[3] Univ Lancaster, MetaLab, Sch Comp & Commun, Lancaster, England
[4] Northwest Univ, Sch Informat Sci & Technol, Xian, Shaanxi, Peoples R China
[5] Xian Univ Posts & Telecommun, Sch Comp Sci & Technol, Xian, Shaanxi, Peoples R China
基金
英国工程与自然科学研究理事会; 中国国家自然科学基金;
关键词
Sparse matrix vector multiplication; Performance optimization; Many-Cores; Performance analysis;
D O I
10.1109/HPCC/SmartCity/DSS.2018.00116
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Sparse matrix vector multiplication (SpMV) is one of the most common operations in scientific and high-performance applications, and is often responsible for the application performance bottleneck. While the sparse matrix representation has a significant impact on the resulting application performance, choosing the right representation typically relies on expert knowledge and trial and error. This paper provides the first comprehensive study on the impact of sparse matrix representations on two emerging many-core architectures: the Intel's Knights Landing (KNL) XeonPhi and the ARM-based FT-2000Plus (FTP). Our large-scale experiments involved over 9,500 distinct profiling runs performed on 956 sparse datasets and five mainstream SpMV representations. We show that the best sparse matrix representation depends on the underlying architecture and the program input. To help developers to choose the optimal matrix representation, we employ machine learning to develop a predictive model. Our model is first trained offline using a set of training examples. The learned model can be used to predict the best matrix representation for any unseen input for a given architecture. We show that our model delivers on average 95% and 91% of the best available performance on KNL and FTP respectively, and it achieves this with no runtime profiling overhead.
引用
收藏
页码:649 / 658
页数:10
相关论文
共 50 条
  • [1] Scale-Free Sparse Matrix-Vector Multiplication on Many-Core Architectures
    Liang, Yun
    Tang, Wai Teng
    Zhao, Ruizhe
    Lu, Mian
    Huynh Phung Huynh
    Goh, Rick Siow Mong
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2017, 36 (12) : 2106 - 2119
  • [2] Experiences with the Sparse Matrix-Vector Multiplication on a Many-core Processor
    Pichel, Juan C.
    Rivera, Francisco F.
    [J]. 2012 IEEE 26TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS & PHD FORUM (IPDPSW), 2012, : 7 - 15
  • [3] Spatiotemporal Graph and Hypergraph Partitioning Models for Sparse Matrix-Vector Multiplication on Many-Core Architectures
    Abubaker, Nabil
    Akbudak, Kadir
    Aykanat, Cevdet
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2019, 30 (02) : 445 - 458
  • [4] Sparse Matrix-Vector Multiplication on a Map-Reduce Many-Core Accelerator
    Dragomir, Voichita
    Stefan, Gheorghe M.
    [J]. ROMANIAN JOURNAL OF INFORMATION SCIENCE AND TECHNOLOGY, 2020, 23 (03): : 262 - 273
  • [5] Performance Analysis and Optimization of Sparse Matrix-Vector Multiplication on Modern Multi- and Many-Core Processors
    Elafrou, Athena
    Goumas, Georgios
    Koziris, Nectarios
    [J]. 2017 46TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING (ICPP), 2017, : 292 - 301
  • [6] Sparse matrix-vector multiplication on the Single-Chip Cloud Computer many-core processor
    Pichel, Juan C.
    Rivera, Francisco F.
    [J]. JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2013, 73 (12) : 1539 - 1550
  • [7] Locality-Aware Parallel Sparse Matrix-Vector and Matrix-Transpose-Vector Multiplication on Many-Core Processors
    Karsavuran, M. Ozan
    Akbudak, Kadir
    Aykanat, Cevdet
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2016, 27 (06) : 1713 - 1726
  • [8] Optimization of Sparse Matrix-Vector Multiplication on Emerging Multicore Platforms
    Williams, Samuel
    Oliker, Leonid
    Vuduc, Richard
    Shalf, John
    Yelick, Katherine
    Demmel, James
    [J]. 2007 ACM/IEEE SC07 CONFERENCE, 2010, : 637 - +
  • [9] Optimization of sparse matrix-vector multiplication on emerging multicore platforms
    Williams, Samuel
    Oliker, Leonid
    Vuduc, Richard
    Shalf, John
    Yelick, Katherine
    Demmel, James
    [J]. PARALLEL COMPUTING, 2009, 35 (03) : 178 - 194
  • [10] Exploiting Locality in Sparse Matrix-Matrix Multiplication on Many-Core Architectures
    Akbudak, Kadir
    Aykanat, Cevdet
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2017, 28 (08) : 2258 - 2271