Elegante: A Machine Learning-Based Threads Configuration Tool for SpMV Computations on Shared Memory Architecture

被引:0
|
作者
Ahmad, Muhammad [1 ]
Sardar, Usman [2 ]
Batyrshin, Ildar [1 ]
Hasnain, Muhammad [3 ]
Sajid, Khan [4 ]
Sidorov, Grigori [1 ]
机构
[1] Inst Politecn Nacl CIC PN, Ctr Invest Comp, Mexico City 07738, Mexico
[2] Inst Arts & Culture, Sch Informat & Robot, Lahore 54000, Pakistan
[3] Lahore Leads Univ, Dept Comp Sci, Lahore 54000, Pakistan
[4] Zhejiang Normal Univ, Coll Comp Sci & Technol, Jinhua 321004, Peoples R China
关键词
CSR; machine learning; SVM; high-performance computing; parallel computing; OpenMPI; shared memory;
D O I
10.3390/info15110685
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The sparse matrix-vector product (SpMV) is a fundamental computational kernel utilized in a diverse range of scientific and engineering applications. It is commonly used to solve linear and partial differential equations. The parallel computation of the SpMV product is a challenging task. Existing solutions often employ a fixed number of threads assignment to rows based on empirical formulas, leading to sub-optimal configurations and significant performance losses. Elegante, our proposed machine learning-powered tool, utilizes a data-driven approach to identify the optimal thread configuration for SpMV computations within a shared memory architecture. It accomplishes this by predicting the best thread configuration based on the unique sparsity pattern of each sparse matrix. Our approach involves training and testing using various base and ensemble machine learning algorithms such as decision tree, random forest, gradient boosting, logistic regression, and support vector machine. We rigorously experimented with a dataset of nearly 1000+ real-world matrices. These matrices originated from 46 distinct application domains, spanning fields like robotics, power networks, 2D/3D meshing, and computational fluid dynamics. Our proposed methodology achieved 62% of the highest achievable performance and is 7.33 times faster, demonstrating a significant disparity from the default OpenMP configuration policy and traditional practice methods of manually or randomly selecting the number of threads. This work is the first attempt where the structure of the matrix is used to predict the optimal thread configuration for the optimization of parallel SpMV computation in a shared memory environment.
引用
收藏
页数:19
相关论文
共 50 条
  • [31] Development of Machine Learning-Based Text Processing Tool for Abstract of Physical Chemistry Papers
    Watari, Yuika
    Okuwaki, Koji
    Mochizuki, Yuji
    JOURNAL OF COMPUTER CHEMISTRY-JAPAN, 2019, 18 (03) : 123 - 125
  • [32] A machine learning-based forensic tool for image classification-A design science approach
    Del Mar-Raave, Joanna Rose
    Bahsi, Hayretdin
    Mrsic, Leo
    Hausknecht, Kresimir
    FORENSIC SCIENCE INTERNATIONAL-DIGITAL INVESTIGATION, 2021, 38
  • [33] Machine Learning-Based Error Recovery System for NAND Flash Memory with Process Variation
    Lee, Seonmin
    Jee, Jeongju
    Park, Hyuncheol
    12TH INTERNATIONAL CONFERENCE ON ICT CONVERGENCE (ICTC 2021): BEYOND THE PANDEMIC ERA WITH ICT CONVERGENCE INNOVATION, 2021, : 1537 - 1541
  • [34] Machine learning-based self-sensing of the stiffness of shape memory coil actuator
    Sul, Bhagoji Bapurao
    Dhanalakshami, K.
    SOFT COMPUTING, 2022, 26 (08) : 3743 - 3755
  • [35] Using Automatically Recommended Seed Mappings for Machine Learning-Based Code-to-Architecture Mappers
    Herold, Sebastian
    Sinkala, Zipani Tom
    38TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2023, 2023, : 1432 - 1439
  • [36] Machine learning-based prediction of proteins' architecture using sequences of amino acids and structural alphabets
    Abbass, Jad
    Parisi, Charles
    JOURNAL OF BIOMOLECULAR STRUCTURE & DYNAMICS, 2024,
  • [37] Generating Seed Mappings for Machine Learning-Based Code-to-Architecture Mappers Using InMap
    Sinkala, Zipani Tom
    Herold, Sebastian
    APPLIED COMPUTING REVIEW, 2023, 23 (04): : 5 - 15
  • [38] A machine learning-based assistant tool for early frailty screening of patients receiving maintenance hemodialysis
    Wenmei Lv
    Hualong Liao
    Xue Wang
    Shaobin Yu
    Yuan Peng
    Xianghong Li
    Ping Fu
    Huaihong Yuan
    Yu Chen
    International Urology and Nephrology, 2024, 56 : 223 - 235
  • [39] Pf-Phospho: a machine learning-based phosphorylation sites prediction tool for Plasmodium proteins
    Gupta, Priya
    Venkadesan, Sureshkumar
    Mohanty, Debasisa
    BRIEFINGS IN BIOINFORMATICS, 2022, 23 (04)
  • [40] G4Boost: a machine learning-based tool for quadruplex identification and stability prediction
    H. Busra Cagirici
    Hikmet Budak
    Taner Z. Sen
    BMC Bioinformatics, 23