Enhancing Parallelization with OpenMP through Multi-Modal Transformer Learning

被引:0
|
作者
Chen, Yuehua [1 ]
Yuan, Huaqiang [1 ]
Hou, Fengyao [2 ,3 ]
Hu, Peng [2 ,3 ]
机构
[1] Dongguan Univ Technol, Dongguan, Peoples R China
[2] Chinese Acad Sci, Inst High Energy Phys, Beijing, Peoples R China
[3] Spallat Neutron Source Sci Ctr, Dongguan, Peoples R China
来源
2024 5TH INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND APPLICATION, ICCEA 2024 | 2024年
基金
中国国家自然科学基金; 国家重点研发计划;
关键词
component; OpenMP; Natural Language Processing; Abstract Syntax Trees; Parallelization;
D O I
10.1109/ICCEA62105.2024.10603704
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The popularity of multicore processors and the rise of High Performance Computing as a Service (HPCaaS) have made parallel programming essential to fully utilize the performance of multicore systems. OpenMP, a widely adopted shared-memory parallel programming model, is favored for its ease of use. However, it is still challenging to assist and accelerate automation of its parallelization. Although existing automation tools such as Cetus and DiscoPoP to simplify the parallelization, there are still limitations when dealing with complex data dependencies and control flows. Inspired by the success of deep learning in the field of Natural Language Processing (NLP), this study adopts a Transformer-based model to tackle the problems of automatic parallelization of OpenMP instructions. We propose a novel Transformer-based multimodal model, ParaMP, to improve the accuracy of OpenMP instruction classification. The ParaMP model not only takes into account the sequential features of the code text, but also incorporates the code structural features and enriches the input features of the model by representing the Abstract Syntax Trees (ASTs) corresponding to the codes in the form of binary trees. In addition, we built a BTCode dataset, which contains a large number of C/C++ code snippets and their corresponding simplified AST representations, to provide a basis for model training. Experimental evaluation shows that our model outperforms other existing automated tools and models in key performance metrics such as F1 score and recall. This study shows a significant improvement on the accuracy of OpenMP instruction classification by combining sequential and structural features of code text, which will provide a valuable insight into deep learning techniques to programming tasks.
引用
收藏
页码:465 / 469
页数:5
相关论文
共 50 条
  • [1] Multi-Modal Song Mood Detection with Deep Learning
    Pyrovolakis, Konstantinos
    Tzouveli, Paraskevi
    Stamou, Giorgos
    SENSORS, 2022, 22 (03)
  • [2] Code Parallelization for Multi-Core Software Defined Radio Platforms with OpenMP
    Michael Schwall
    Stefan Nagel
    Friedrich K. Jondral
    Journal of Signal Processing Systems, 2012, 69 : 67 - 74
  • [3] Code Parallelization for Multi-Core Software Defined Radio Platforms with OpenMP
    Schwall, Michael
    Nagel, Stefan
    Jondral, Friedrich K.
    JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2012, 69 (01): : 67 - 74
  • [4] Enhancing Road Safety: A Multi-Modal Drowsiness Detection System for Drivers
    Hamza, Guirrou
    Es-Sadek, Mohamed Zeriab
    Taher, Youssef
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2025, 16 (01) : 1006 - 1011
  • [5] OpenMP Parallelization and Optimization of Graph-Based Machine Learning Algorithms
    Meng, Zhaoyi
    Koniges, Alice
    He, Yun
    Williams, Samuel
    Kurth, Thorsten
    Cook, Brandon
    Deslippe, Jack
    Bertozzi, Andrea L.
    OpenMP: Memory, Devices, and Tasks, 2016, 9903 : 17 - 31
  • [6] Transfer Learning for the Visual Arts: The Multi-modal Retrieval of Iconclass Codes
    Banar, Nikolay
    Daelemans, Walter
    Kestemont, Mike
    ACM JOURNAL ON COMPUTING AND CULTURAL HERITAGE, 2023, 16 (02):
  • [7] Parallelization of an unstructured Navier-Stokes solver using a multi-color ordering method for OpenMP
    Sato, Yohei
    Hino, Takanori
    Ohashi, Kunihide
    COMPUTERS & FLUIDS, 2013, 88 : 496 - 509
  • [8] Multi-modal Detection of Cyberbullying on Twitter
    Qiu, Jiabao
    Moh, Melody
    Moh, Teng-Sheng
    ACMSE 2022: PROCEEDINGS OF THE 2022 ACM SOUTHEAST CONFERENCE, 2022, : 9 - 16
  • [9] Deep learning based object detection from multi-modal sensors: an overview
    Liu, Ye
    Meng, Shiyang
    Wang, Hongzhang
    Liu, Jun
    MULTIMEDIA TOOLS AND APPLICATIONS, 2024, 83 (07) : 19841 - 19870
  • [10] Multi-Modal Learning with Joint Image-Text Embeddings and Decoder Networks
    Chemmanam, Ajai John
    Jose, Bijoy A.
    Moopan, Asif
    2024 IEEE 7TH INTERNATIONAL CONFERENCE ON INDUSTRIAL CYBER-PHYSICAL SYSTEMS, ICPS 2024, 2024,