A Machine Learning Approach Towards Runtime Optimisation of Matrix Multiplication

被引:3
|
作者
Xia, Yufan [1 ]
De La Pierre, Marco [2 ]
Barnard, Amanda S. [1 ]
Barca, Giuseppe Maria Junior [1 ]
机构
[1] Australian Natl Univ, Canberra, Australia
[2] Pawsey Supercomp Res Ctr, Perth, Australia
来源
2023 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, IPDPS | 2023年
关键词
GEMM; BLAS; Machine learning; BLIS; MKL; Linear Algebra; Multiple threads; ALGEBRA; ALGORITHMS; GEMM;
D O I
10.1109/IPDPS54959.2023.00059
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The GEneral Matrix Multiplication (GEMM) is one of the essential algorithms in scientific computing. Single-thread GEMM implementations are well-optimised with techniques like blocking and autotuning. However, due to the complexity of modern multi-core shared memory systems, it is challenging to determine the number of threads that minimises the multi-thread GEMM runtime. We present a proof-of-concept approach to building an Architecture and Data-Structure Aware Linear Algebra (ADSALA) software library that uses machine learning to optimise the runtime performance of BLAS routines. More specifically, our method uses a machine learning model on-the-fly to automatically select the optimal number of threads for a given GEMM task based on the collected training data. Test results on two different HPC node architectures, one based on a two-socket Intel Cascade Lake and the other on a two-socket AMD((R)) Zen 3, revealed a 25 to 40 per cent speedup compared to traditional GEMM implementations in BLAS when using GEMM of memory usage within 100 MB.
引用
收藏
页码:524 / 534
页数:11
相关论文
共 50 条
  • [1] Towards functional safety compliance of matrix-matrix multiplication for machine learning-based autonomous systems
    Fernandez, Javier
    Perez, Jon
    Agirre, Irune
    Allende, Imanol
    Abella, Jaume
    Cazorla, Francisco J.
    JOURNAL OF SYSTEMS ARCHITECTURE, 2021, 121
  • [2] Runtime Adaptive Matrix Multiplication for the SW26010 Many-Core Processor
    Wu, Zheng
    Li, Mingfan
    Chi, Mengxian
    Xu, Le
    An, Hong
    IEEE ACCESS, 2020, 8 : 156915 - 156928
  • [3] Analytical Approach towards Prediction of Diseases Using Machine Learning Algorithms
    Grover, Ayushi
    Kalani, Anukriti
    Dubey, Sanjay Kumar
    PROCEEDINGS OF THE CONFLUENCE 2020: 10TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING, DATA SCIENCE & ENGINEERING, 2020, : 793 - 797
  • [4] Optimisation studies on performance enhancement of spray cooling - Machine learning approach
    Deshannavar, Umesh B.
    Thakur, Saee H.
    Gadagi, Amith H.
    Kadapure, Santosh A.
    Paramasivam, Santhosh
    Rajamohan, Natarajan
    Possidente, Raffaello
    Gatto, Gianluca
    CASE STUDIES IN THERMAL ENGINEERING, 2024, 64
  • [5] Advanced Machine Learning for Runtime Data Generation
    Zamir, Bukhtawar
    Campos, Joao R.
    Vieira, Marco
    PROCEEDINGS OF12TH LATIN-AMERICAN SYMPOSIUM ON DEPENDABLE AND SECURE COMPUTING, LADC 2023, 2023, : 182 - 187
  • [6] Risk Matrix for Violent Radicalization: A Machine Learning Approach
    Ivaskevics, Krisztian
    Haller, Jozsef
    FRONTIERS IN PSYCHOLOGY, 2022, 13
  • [7] Towards a machine learning approach to the analysis of indirect translation
    Ustaszewski, Michael
    TRANSLATION STUDIES, 2021, 14 (03) : 313 - 331
  • [8] Matrix multiplication and transformations: an APOS approach
    Figueroa, Ana Paulina
    Possani, Edgar
    Trigueros, Maria
    JOURNAL OF MATHEMATICAL BEHAVIOR, 2018, 52 : 77 - 91
  • [9] The absorption and multiplication of uncertainty in machine-learning-driven finance
    Hansen, Kristian Bondo
    Borch, Christian
    BRITISH JOURNAL OF SOCIOLOGY, 2021, 72 (04) : 1015 - 1029
  • [10] A supervised machine learning approach for the optimisation of the assembly line feeding mode selection
    Zangaro, Francesco
    Minner, Stefan
    Battini, Daria
    INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2021, 59 (16) : 4881 - 4902