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] Cognitive Navigation for Intelligent Mobile Robots:A Learning-Based Approach With Topological Memory Configuration
    Qiming Liu
    Xinru Cui
    Zhe Liu
    Hesheng Wang
    IEEE/CAAJournalofAutomaticaSinica, 2024, 11 (09) : 1933 - 1943
  • [32] A Machine Learning-Based Approach for Predicting Tool Wear in Industrial Milling Processes
    Van Herreweghe, Mathias
    Verbeke, Mathias
    Meert, Wannes
    Jacobs, Tom
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2019, PT II, 2020, 1168 : 414 - 425
  • [33] A Machine Learning-Based Web Tool for the Severity Prediction of COVID-19
    Christodoulou, Avgi
    Katsarou, Martha-Spyridoula
    Emmanouil, Christina
    Gavrielatos, Marios
    Georgiou, Dimitrios
    Tsolakou, Annia
    Papasavva, Maria
    Economou, Vasiliki
    Nanou, Vasiliki
    Nikolopoulos, Ioannis
    Daganou, Maria
    Argyraki, Aikaterini
    Stefanidis, Evaggelos
    Metaxas, Gerasimos
    Panagiotou, Emmanouil
    Michalopoulos, Ioannis
    Drakoulis, Nikolaos
    BIOTECH, 2024, 13 (03):
  • [34] MantaID: a machine learning-based tool to automate the identification of biological database IDs
    Zeng, Zhengpeng
    Hu, Jiamin
    Cao, Miyuan
    Li, Bingbing
    Wang, Xiting
    Yu, Feng
    Mao, Longfei
    DATABASE-THE JOURNAL OF BIOLOGICAL DATABASES AND CURATION, 2023, 2023
  • [35] A Statistical and Machine Learning-Based Tool for Modeling and Visualization of Radiotherapy Treatment Outcomes
    Oh, J.
    Wang, Y.
    Apte, A.
    Deasy, J.
    MEDICAL PHYSICS, 2012, 39 (06) : 3763 - 3763
  • [36] A Machine Learning-Based Severity Prediction Tool for the Michigan Neuropathy Screening Instrument
    Haque, Fahmida
    Reaz, Mamun B. I.
    Chowdhury, Muhammad E. H.
    bin Shapiai, Mohd Ibrahim
    Malik, Rayaz S. A.
    Alhatou, Mohammed
    Kobashi, Syoji
    Ara, Iffat
    Ali, Sawal H. M.
    Bakar, Ahmad A. A.
    Bhuiyan, Mohammad Arif Sobhan
    DIAGNOSTICS, 2023, 13 (02)
  • [37] Development and validation of a machine learning-based tool to predict autism among children
    Betts, Kim Steven
    Chai, Kevin
    Kisely, Steve
    Alati, Rosa
    AUTISM RESEARCH, 2023, 16 (05) : 941 - 952
  • [38] Easy-Prime: a machine learning-based prime editor design tool
    Li, Yichao
    Chen, Jingjing
    Tsai, Shengdar Q.
    Cheng, Yong
    GENOME BIOLOGY, 2021, 22 (01)
  • [39] A machine learning-based severity stratification tool for high altitude pulmonary edema
    Luobu Gesang
    Yangzong Suona
    Zhuoga Danzeng
    Bai Ci
    Quzhen Gesang
    WangJiu Cidan
    Qiangba Dingzeng
    Zhuoga Baima
    Quzhen Zhaxi
    BMC Medical Informatics and Decision Making, 25 (1)
  • [40] AQuA-P: A machine learning-based tool for water quality assessment
    Diaz-Gonzalez, L.
    Aguilar-Rodriguez, R. A.
    Perez-Sansalvador, J. C.
    Lakouari, N.
    JOURNAL OF CONTAMINANT HYDROLOGY, 2025, 269