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 条
  • [41] Scalable Shared Encoding Architecture for Learning-Based Error Detection in Robotic Wiring Harness Assembly
    Galassi, Kevin
    Caporali, Alessio
    Laudante, Gianluca
    Palli, Gianluca
    2024 IEEE INTERNATIONAL CONFERENCE ON ADVANCED INTELLIGENT MECHATRONICS, AIM 2024, 2024, : 518 - 523
  • [42] 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
  • [43] Machine learning-based thread-parallelism regulation in software transactional memory
    Rughetti, Diego
    Di Sanzo, Pierangelo
    Ciciani, Bruno
    Quaglia, Francesco
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2017, 109 : 208 - 229
  • [44] GO Bench: shared hub for universal benchmarking of machine learning-based protein functional annotations
    Dickson, Andrew
    Asgari, Ehsaneddin
    McHardy, Alice C.
    Mofrad, Mohammad R. K.
    BIOINFORMATICS, 2023, 39 (02)
  • [45] 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
  • [46] Learning-Based Illuminant Estimation Model With a Persistent Memory Residual Network (PMRN) Architecture
    Choi, Ho-Hyoung
    Yun, Byoung-Ju
    IEEE ACCESS, 2021, 9 : 29960 - 29969
  • [47] Deep reinforcement learning-based optimal deployment of IoT machine learning jobs in fog computing architecture
    Bushehrian, Omid
    Moazeni, Amir
    COMPUTING, 2025, 107 (01)
  • [48] AITuning: Machine Learning-Based Tuning Tool for Run-Time Communication Libraries
    Fanfarillo, Alessandro
    Del Vento, Davide
    PARALLEL COMPUTING: TECHNOLOGY TRENDS, 2020, 36 : 409 - 418
  • [49] 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
  • [50] Clinical Experience of the Machine Learning-based Automated Treatment Planning Tool for Breast Radiotherapy
    Yoo, S.
    Sheng, Y.
    Blitzblau, R. C.
    McDuff, S.
    Champ, C. E.
    O'Neill, L.
    Catalano, S.
    Morrison, J.
    Yin, F. F.
    Wu, Q. J. J.
    INTERNATIONAL JOURNAL OF RADIATION ONCOLOGY BIOLOGY PHYSICS, 2020, 108 (03): : E261 - E261