Multi-View Learning for Parallelism Discovery of Sequential Programs

被引:3
作者
Chen, Le [1 ]
Mahmud, Quazi Ishtiaque [1 ]
Jannesari, Ali [1 ]
机构
[1] Iowa State Univ, Dept Comp Sci, Ames, IA 50011 USA
来源
2022 IEEE 36TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS (IPDPSW 2022) | 2022年
关键词
machine learning; artificial intelligence; parallel program language; NEURAL-NETWORK; GRAPH;
D O I
10.1109/IPDPSW55747.2022.00059
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Identifying suitable parallelizable regions in sequential programs is a crucial task for performance optimizations. Traditional methods like static and dynamic analysis have flaws like insufficient accuracy or high overhead runtime. Recent studies are more interested in applying machine learning techniques to this topic. The crux of parallelism discovery with machine learning is to generate meaningful code representations. One promising route is to exploit the dependence graph through Graph Neural Networks (GNNS). In this paper, a novel multi-view framework is proposed to automatically detect potential parallelism opportunities. Sequential programs are first represented by program execution graphs encompassing both semantic and structural information. Then two independent views are defined: namely, a structural pattern view and a node feature view. In the structural view, local graph structural patterns are captured via random anonymous walks and then fed into a Graph Convolutional Network (GCN). The node features, both dynamic and static, are fed into another GCN in the node feature view. In addition, a multi-view model is designed to unify the node features and the structural features for parallelism detection. Our approach achieves comparable state-of-the-art performance on parallel region classification with an accuracy up to 92.6% when evaluated with popular parallel computing benchmarks.
引用
收藏
页码:295 / 303
页数:9
相关论文
共 51 条
[1]   Building representative and balanced datasets of OpenMP parallel regions [J].
Alcaraz, Jordi ;
Sleder, Steven ;
TehraniJamsaz, Ali ;
Sikora, Anna ;
Jannesari, Ali ;
Sorribes, Joan ;
Cesar, Eduardo .
2021 29TH EUROMICRO INTERNATIONAL CONFERENCE ON PARALLEL, DISTRIBUTED AND NETWORK-BASED PROCESSING (PDP 2021), 2021, :67-74
[2]  
Amdahl G. M., 1967, P APR 18 20 1967 SPR, P483, DOI DOI 10.1145/1465482.1465560
[3]   DGCNN: A convolutional neural network over large-scale labeled graphs [J].
Anh Viet Phan ;
Minh Le Nguyen ;
Yen Lam Hoang Nguyen ;
Lam Thu Bui .
NEURAL NETWORKS, 2018, 108 :533-543
[4]  
[Anonymous], 2012, Polybench: The Polyhedral Benchmark Suite
[5]   Machine learning techniques for code smell detection: A systematic literature review and meta-analysis [J].
Azeem, Muhammad Ilyas ;
Palomba, Fabio ;
Shi, Lin ;
Wang, Qing .
INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 108 :115-138
[6]  
Ben-Nun T, 2018, Arxiv, DOI arXiv:1806.07336
[7]   Shortest-path kernels on graphs [J].
Borgwardt, KM ;
Kriegel, HP .
Fifth IEEE International Conference on Data Mining, Proceedings, 2005, :74-81
[8]  
Bruna J, 2014, Arxiv, DOI [arXiv:1312.6203, DOI 10.48550/ARXIV.1312.6203]
[9]  
Defferrard M, 2016, ADV NEUR IN, V29
[10]  
Duran Alejandro, 2009, Proceedings of the 2009 International Conference on Parallel Processing (ICPP 2009), P124, DOI 10.1109/ICPP.2009.64