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 条
  • [21] Machine learning-based prediction of the mechanical properties of β titanium shape memory alloys
    Nohira, Naoki
    Ichisawa, Taichi
    Tahara, Masaki
    Kumazawa, Itsuo
    Hosoda, Hideki
    JOURNAL OF MATERIALS RESEARCH AND TECHNOLOGY-JMR&T, 2025, 34 : 2634 - 2644
  • [22] A machine learning-based feature extraction method for image classification using ResNet architecture
    Liao, Jing
    Guo, Linpei
    Jiang, Lei
    Yu, Chang
    Liang, Wei
    Li, Kuanching
    Pop, Florin
    Digital Signal Processing: A Review Journal, 2025, 160
  • [23] AITuning: Machine Learning-Based Tuning Tool for Run-Time Communication Libraries
    Fanfarillo, Alessandro
    Del Vento, Davide
    PARALLEL COMPUTING: TECHNOLOGY TRENDS, 2020, 36 : 409 - 418
  • [24] QMaC: A Quantum Mechanics/Machine Learning-based Computational Tool for Chemical Product Design
    Liu, Qilei
    Tang, Kun
    Zhang, Jinyuan
    Feng, Yixuan
    Xu, Chenyang
    Liu, Linlin
    Du, Jian
    Zhang, Lei
    30TH EUROPEAN SYMPOSIUM ON COMPUTER AIDED PROCESS ENGINEERING, PTS A-C, 2020, 48 : 1807 - 1812
  • [25] A Machine Learning-Based Triage Tool for Children With Acute Infection in a Low Resource Setting*
    Kwizera, Arthur
    Kissoon, Niranjan
    Musa, Ndidiamaka
    Urayeneza, Olivier
    Mujyarugamba, Pierre
    Patterson, Andrew J.
    Harmon, Lori
    Farmer, Joseph C.
    Duenser, Martin W.
    Meier, Jens
    PEDIATRIC CRITICAL CARE MEDICINE, 2019, 20 (12) : E524 - E530
  • [26] EvalDNA: a machine learning-based tool for the comprehensive evaluation of mammalian genome assembly quality
    Madolyn L. MacDonald
    Kelvin H. Lee
    BMC Bioinformatics, 22
  • [27] Machine learning-based 2-year risk prediction tool in immunoglobulin A nephropathy
    Kim, Yujeong
    Jhee, Jong Hyun
    Park, Chan Min
    Oh, Donghwan
    Lim, Beom Jin
    Choi, Hoon Young
    Yoon, Dukyong
    Park, Hyeong Cheon
    KIDNEY RESEARCH AND CLINICAL PRACTICE, 2024, 43 (06) : 739 - 752
  • [28] Systematic Development of a Machine Learning-Based Asset Management Tool for Wastewater Pipeline Networks
    Stengel, Jake
    Aboagye, Emmanuel
    Le, Phuong
    DeNafo, Matt
    Snyder, Dylan
    Nelson, Nathanial
    Yenkie, Kirti
    ACS ES&T WATER, 2024, 4 (12): : 5555 - 5565
  • [29] Fast Machine Learning-Based High Fidelity Mesoscopic Modeling Tool for Traffic Simulation
    Eapen, Neeta A.
    Heckendorn, Robert B.
    Abdel-Rahim, Ahmed
    INTERNATIONAL CONFERENCE ON TRANSPORTATION AND DEVELOPMENT 2024: TRANSPORTATION SAFETY AND EMERGING TECHNOLOGIES, ICTD 2024, 2024, : 417 - 430
  • [30] EvalDNA: a machine learning-based tool for the comprehensive evaluation of mammalian genome assembly quality
    MacDonald, Madolyn L.
    Lee, Kelvin H.
    BMC BIOINFORMATICS, 2021, 22 (01)