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] Machine learning-based assessment tool for imbalance and vestibular dysfunction with virtual reality rehabilitation system
    Yeh, Shih-Ching
    Huang, Ming-Chun
    Wang, Pa-Chun
    Fang, Te-Yung
    Su, Mu-Chun
    Tsai, Po-Yi
    Rizzo, Albert
    COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE, 2014, 116 (03) : 311 - 318
  • [42] G4Boost: a machine learning-based tool for quadruplex identification and stability prediction
    Cagirici, H. Busra
    Budak, Hikmet
    Sen, Taner Z.
    BMC BIOINFORMATICS, 2022, 23 (01)
  • [43] Predicting viral proteins that evade the innate immune system: a machine learning-based immunoinformatics tool
    Beltran, Jorge F.
    Herrera Belen, Lisandra
    Yanez, Alejandro J.
    Jimenez, Luis
    BMC BIOINFORMATICS, 2024, 25 (01):
  • [44] A machine learning-based clinical predictive tool to identify patients at high risk of medication errors
    Abdo, Ammar
    Gallay, Lyse
    Vallecillo, Thibault
    Clarenne, Justine
    Quillet, Pauline
    Vuiblet, Vincent
    Merieux, Rudy
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [45] A Machine Learning-Based Preclinical Osteoporosis Screening Tool (POST): Model Development and Validation Study
    Yang, Qingling
    Cheng, Huilin
    Qin, Jing
    Loke, Alice Yuen
    Ngai, Fei Wan
    Chong, Ka Chun
    Zhang, Dexing
    Gao, Yang
    Wang, Harry Haoxiang
    Liu, Zhaomin
    Hao, Chun
    Xie, Yao Jie
    JMIR AGING, 2023, 6
  • [46] A Novel Machine Learning-Based Methodology for Tool Wear Prediction Using Acoustic Emission Signals
    Ferrando Chacon, Juan Luis
    Fernandez de Barrena, Telmo
    Garcia, Ander
    Saez de Buruaga, Mikel
    Badiola, Xabier
    Vicente, Javier
    SENSORS, 2021, 21 (17)
  • [47] Impact of Signal Features on Machine Learning-Based Tool Condition Classification in the Milling Chipboard Process
    Przybys-Malaczek, Agata
    Szymanowski, Karol
    Kurek, Jaroslaw
    PRZEGLAD ELEKTROTECHNICZNY, 2024, 100 (05): : 294 - 297
  • [48] Malnutrition risk assessment using a machine learning-based screening tool: A multicentre retrospective cohort
    Parchuri, Pramathamesh
    Besculides, Melanie
    Zhan, Serena
    Cheng, Fu-yuan
    Timsina, Prem
    Cheertirala, Satya Narayana
    Kersch, Ilana
    Wilson, Sara
    Freeman, Robert
    Reich, David
    Mazumdar, Madhu
    Kia, Arash
    JOURNAL OF HUMAN NUTRITION AND DIETETICS, 2024, 37 (03) : 622 - 632
  • [49] Application of a Machine Learning-Based Decision Support Tool to Improve an Injury Surveillance System Workflow
    Catchpoole, Jesani
    Nanda, Gaurav
    Vallmuur, Kirsten
    Nand, Goshad
    Lehto, Mark
    APPLIED CLINICAL INFORMATICS, 2022, 13 (03): : 700 - 710
  • [50] A machine learning-based assistant tool for early frailty screening of patients receiving maintenance hemodialysis
    Lv, Wenmei
    Liao, Hualong
    Wang, Xue
    Yu, Shaobin
    Peng, Yuan
    Li, Xianghong
    Fu, Ping
    Yuan, Huaihong
    Chen, Yu
    INTERNATIONAL UROLOGY AND NEPHROLOGY, 2024, 56 (01) : 223 - 235