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 条
  • [41] A holistic approach towards a generalizable machine learning predictor of cell penetrating peptides
    Ismail, Bahaa
    Jones, Sarah
    Howl, John
    AUSTRALIAN JOURNAL OF CHEMISTRY, 2023, 76 (08) : 493 - 506
  • [42] A machine learning approach towards reviewing the role of ‘Internet of Things’ in the shipping industry
    Gerakoudi K.
    Kokosalakis G.
    Stavroulakis P.J.
    Journal of Shipping and Trade, 9 (1)
  • [43] Automatic Tuning of MPI Runtime Parameter Settings by Using Machine Learning
    Pellegrini, Simone
    Fahringer, Thomas
    Jordan, Herbert
    Moritsch, Hans
    PROCEEDINGS OF THE 2010 COMPUTING FRONTIERS CONFERENCE (CF 2010), 2010, : 115 - 116
  • [44] Towards a Resilience to Stress Index Based on Physiological Response: A Machine Learning Approach
    Diaz-Ramos, Ramon E.
    Gomez-Cravioto, Daniela A.
    Trejo, Luis A.
    Lopez, Carlos Figueroa
    Medina-Perez, Miguel Angel
    SENSORS, 2021, 21 (24)
  • [45] A machine learning based approach towards high-dimensional mediation analysis
    Natha, Tanmay
    Caffoa, Brian
    Wagerb, Tor
    Lindquista, Martin A.
    NEUROIMAGE, 2023, 268
  • [46] An Automated Machine Learning Approach towards Energy Saving Estimates in Public Buildings
    Biessmann, Felix
    Kamble, Bhaskar
    Streblow, Rita
    ENERGIES, 2023, 16 (19)
  • [47] Towards a Machine-learning Approach for Sickness Prediction in 360° Stereoscopic Videos
    Padmanaban, Nitish
    Ruban, Timon
    Sitzmann, Vincent
    Norcia, Anthony M.
    Wetzstein, Gordon
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2018, 24 (04) : 1594 - 1603
  • [48] A supervised machine-learning approach towards geochemical predictive modelling in archaeology
    Oonk, Stijn
    Spijker, Job
    JOURNAL OF ARCHAEOLOGICAL SCIENCE, 2015, 59 : 80 - 88
  • [49] A novel approach towards predicting faults in power systems using machine learning
    Bajwa, Binvant
    Butani, Charvin
    Patel, Chintan
    ELECTRICAL ENGINEERING, 2022, 104 (01) : 363 - 368
  • [50] Towards a Fast and Accurate EIT Inverse Problem Solver: A Machine Learning Approach
    Fernandez-Fuentes, Xose
    Mera, David
    Gomez, Andres
    Vidal-Franco, Ignacio
    ELECTRONICS, 2018, 7 (12)