Optimizing Sparse Linear Algebra Through Automatic Format Selection and Machine Learning

被引:0
|
作者
Stylianou, Christodoulos [1 ]
Weiland, Michele [1 ]
机构
[1] Univ Edinburgh, EPCC, Edinburgh, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
sparse matrix storage formats; machine learning; automatic format selection;
D O I
10.1109/IPDPSW59300.2023.00125
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Sparse matrices are an integral part of scientific simulations. As hardware evolves new sparse matrix storage formats are proposed aiming to exploit optimizations specific to the new hardware. In the era of heterogeneous computing, users often are required to use multiple formats for their applications to remain optimal across the different available hardware, resulting in larger development times and maintenance overhead. A potential solution to this problem is the use of a lightweight auto-tuner driven by Machine Learning (ML) that would select for the user an optimal format from a pool of available formats that will match the characteristics of the sparsity pattern, target hardware and operation to execute. In this paper, we introduce Morpheus-Oracle, a library that provides a lightweight ML auto-tuner capable of accurately predicting the optimal format across multiple backends, targeting the major HPC architectures aiming to eliminate any format selection input by the end-user. From more than 2000 reallife matrices, we achieve an average classification accuracy and balanced accuracy of 92.63% and 80.22% respectively across the available systems. The adoption of the auto-tuner results in average speedup of 1.1x on CPUs and 1.5x to 8x on NVIDIA and AMD GPUs, with maximum speedups reaching up to 7x and 1000x respectively.
引用
收藏
页码:734 / 743
页数:10
相关论文
共 50 条
  • [1] Automatic Selection of Sparse Triangular Linear System Solvers on GPUs through Machine Learning Techniques
    Dufrechou, Ernesto
    Ezzatti, Pablo
    Quintana-Orti, Enrique S.
    2019 31ST INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING (SBAC-PAD 2019), 2019, : 41 - 47
  • [2] Automatic Optimization of Matrix Implementations for Distributed Machine Learning and Linear Algebra
    Luo, Shangyu
    Jankov, Dimitrije
    Yuan, Binhang
    Jermaine, Chris
    SIGMOD '21: PROCEEDINGS OF THE 2021 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2021, : 1222 - 1234
  • [3] A customized precision format based on mantissa segmentation for accelerating sparse linear algebra
    Grutzmacher, Thomas
    Cojean, Terry
    Flegar, Goran
    Gobel, Fritz
    Anzt, Hartwig
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2020, 32 (15):
  • [4] Optimizing Sparse Linear Algebra for Large-Scale Graph Analytics
    Buono, Daniele
    Gunnels, John A.
    Que, Xinyu
    Checconi, Fabio
    Petrini, Fabrizio
    Tuan, Tai-Ching
    Long, Chris
    COMPUTER, 2015, 48 (08) : 26 - 34
  • [5] Optimizing Dynamic Trace Signal Selection Using Machine Learning and Linear Programming
    Zhu, Charlie Shucheng
    Malik, Sharad
    2015 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2015, : 1289 - 1292
  • [6] Input-Aware Sparse Tensor Storage Format Selection for Optimizing MTTKRP
    Sun, Qingxiao
    Liu, Yi
    Yang, Hailong
    Dun, Ming
    Luan, Zhongzhi
    Gan, Lin
    Yang, Guangwen
    Qian, Depei
    IEEE TRANSACTIONS ON COMPUTERS, 2021, 71 (08) : 1968 - 1981
  • [7] Input-Aware Sparse Tensor Storage Format Selection for Optimizing MTTKRP
    Yang, Hailong
    Liu, Yi
    Luan, Zhongzhi
    Gan, Lin
    Yang, Guangwen
    Qian, Depei
    COMPUTER, 2023, 56 (08) : 4 - 7
  • [8] Automatic parameters selection in machine learning
    Ludermir, Teresa B.
    de Souto, Marcilio C. P.
    Vellasco, Marley
    NEUROCOMPUTING, 2012, 75 (01) : 1 - 2
  • [9] Bridging the Gap between Deep Learning and Sparse Matrix Format Selection
    Zhao, Yue
    Li, Jiajia
    Liao, Chunhua
    Shen, Xipeng
    ACM SIGPLAN NOTICES, 2018, 53 (01) : 94 - 108
  • [10] SpTFS: Sparse Tensor Format Selection for MTTKRP via Deep Learning
    Sun, Qingxiao
    Liu, Yi
    Dun, Ming
    Yang, Hailong
    Luan, Zhongzhi
    Gan, Lin
    Yang, Guangwen
    Qian, Depei
    PROCEEDINGS OF SC20: THE INTERNATIONAL CONFERENCE FOR HIGH PERFORMANCE COMPUTING, NETWORKING, STORAGE AND ANALYSIS (SC20), 2020,