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
来源
2023 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS, IPDPSW | 2023年
基金
英国工程与自然科学研究理事会;
关键词
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] Optimizing machine-learning models for mutagenicity prediction through better feature selection
    Shinada, Nicolas K.
    Koyama, Naoki
    Ikemori, Megumi
    Nishioka, Tomoki
    Hitaoka, Seiji
    Hakura, Atsushi
    Asakura, Shoji
    Matsuoka, Yukiko
    Palaniappan, Sucheendra K.
    MUTAGENESIS, 2022, 37 (3-4) : 191 - 202
  • [3] Hardware Acceleration of Machine Learning Beyond Linear Algebra
    Muecke, Sascha
    Piatkowski, Nico
    Morik, Katharina
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2019, PT I, 2020, 1167 : 342 - 347
  • [4] Automatic Selection of Compiler Optimizations by Machine Learning
    Peker, Melih
    Ozturk, Ozcan
    Yildirim, Suleyman
    Ozturk, Mahiye Uluyagmur
    2023 31ST SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE, SIU, 2023,
  • [5] Compressed linear algebra for large-scale machine learning
    Ahmed Elgohary
    Matthias Boehm
    Peter J. Haas
    Frederick R. Reiss
    Berthold Reinwald
    The VLDB Journal, 2018, 27 : 719 - 744
  • [6] Accelerating machine learning queries with linear algebra query processing
    Sun, Wenbo
    Katsifodimos, Asterios
    Hai, Rihan
    DISTRIBUTED AND PARALLEL DATABASES, 2025, 43 (01)
  • [7] Compressed linear algebra for large-scale machine learning
    Elgohary, Ahmed
    Boehm, Matthias
    Haas, Peter J.
    Reiss, Frederick R.
    Reinwald, Berthold
    VLDB JOURNAL, 2018, 27 (05) : 719 - 744
  • [8] Accelerating Machine Learning Queries with Linear Algebra Query Processing
    Sun, Wenbo
    Katsifodimos, Asterios
    Hai, Rihan
    35TH INTERNATIONAL CONFERENCE ON SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, SSDBM 2023, 2023,
  • [9] Machine learning for optimal selection of sparse triangular system solvers on GPUs
    Dufrechou, Ernesto
    Ezzatti, Pablo
    Freire, Manuel
    Quintana-Orti, Enrique S.
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2021, 158 : 47 - 55
  • [10] Automatic Selection of Tuning Plugins in PTF Using Machine Learning
    Mijakovic, Robert
    Gerndt, Michael
    2020 IEEE 34TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS (IPDPSW 2020), 2020, : 349 - 358