Using Ensemble Learning to Improve Automatic Vectorization of Tensor Contraction Program

被引:3
|
作者
Liu, Hui [1 ,2 ]
Zhao, Rongcai [1 ]
Nie, Kai [1 ,3 ]
机构
[1] PLA Informat Engn Univ, State Key Lab Math Engn & Adv Comp, Zhengzhou 450001, Henan, Peoples R China
[2] Henan Normal Univ, Coll Comp & Informat Engn, Xinxiang 453007, Peoples R China
[3] Zhengzhou Univ, Sch Informat Engn, Zhengzhou 450001, Henan, Peoples R China
来源
IEEE ACCESS | 2018年 / 6卷
关键词
Automatic vectorization; compiler optimization; ensemble learning; program features; COMPILER HEURISTICS; MACHINE; OPTIMIZATION;
D O I
10.1109/ACCESS.2018.2867151
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Automatic vectorization is crucial for improving the performance of computationally intensive programs. Existing compilers use conservative optimization strategies for automatic vectorization, which, in many cases, lead to the loss of vectorization opportunity. Studies have shown that the use of machine learning algorithms to build a performance prediction model is beneficial to improve the program performance. The model input is program features, and the output is the predicted optimization strategies or the program performance related to the optimization. In this paper, we focus on a computational intensive loop structure-tensor contraction, which is common in quantum chemical simulations. Most existing machine learning methods rely on control and data flow graphs as features to represent programs, but different tensor contraction kernels have the same control and data flow graphs. In addition, the existing methods often use the same kind of learning algorithm to construct a learning model, which is prone to overfitting and low-precision problems. In this paper, we propose an automatic vectorization performance enhancement method based on ensemble learning. We construct an ensemble learning model to predict the performance of tensor contraction kernels with different vectorization strategies and select the best vectorization strategy for the kernels. According to the storage access patterns of the tensor contraction kernels, we propose a static method for features representation. Based on the multi-algorithm ensemble learning strategy, we obtain better learning results than the single learning algorithm. The experimental results show that the prediction model achieves 88% and 87% prediction efficiency on two different platforms with different instruction sets, data types, and compilers. Compared with the existing methods, the prediction efficiency is greatly improved. In addition, the average peak performance is 2.96x of Intel ICC 12.0 and 2.98x of GCC 4.6 compiler, respectively.
引用
收藏
页码:47112 / 47124
页数:13
相关论文
共 50 条
  • [41] Automatic classification of distal radius fracture using a two-stage ensemble deep learning framework
    Min, Hang
    Rabi, Yousef
    Wadhawan, Ashish
    Bourgeat, Pierrick
    Dowling, Jason
    White, Jordy
    Tchernegovski, Ayden
    Formanek, Blake
    Schuetz, Michael
    Mitchell, Gary
    Williamson, Frances
    Hacking, Craig
    Tetsworth, Kevin
    Schmutz, Beat
    PHYSICAL AND ENGINEERING SCIENCES IN MEDICINE, 2023, 46 (02) : 877 - 886
  • [42] KeratoEL: Detection of keratoconus using corneal parameters with ensemble learning
    Paul, Prodeep Kumar
    Hossan, Arif
    Ullah, Shah Muhammad A.
    HEALTH SCIENCE REPORTS, 2024, 7 (07)
  • [43] Automatic classification of distal radius fracture using a two-stage ensemble deep learning framework
    Hang Min
    Yousef Rabi
    Ashish Wadhawan
    Pierrick Bourgeat
    Jason Dowling
    Jordy White
    Ayden Tchernegovski
    Blake Formanek
    Michael Schuetz
    Gary Mitchell
    Frances Williamson
    Craig Hacking
    Kevin Tetsworth
    Beat Schmutz
    Physical and Engineering Sciences in Medicine, 2023, 46 : 877 - 886
  • [44] Spam Detection Using Ensemble Learning
    Gupta, Vashu
    Mehta, Aman
    Goel, Akshay
    Dixit, Utkarsh
    Pandey, Avinash Chandra
    HARMONY SEARCH AND NATURE INSPIRED OPTIMIZATION ALGORITHMS, 2019, 741 : 661 - 668
  • [45] Image annotation using the ensemble learning
    Hou, J. (jhou@swjtu.edu.cn), 1600, Science Press (38): : 1257 - 1262
  • [46] Using ensemble and metaheuristics learning principles with artificial neural networks to improve due date prediction performance
    Patil, Rahul J.
    INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2008, 46 (21) : 6009 - 6027
  • [47] Web Service Classification Based on Automatic Semantic Annotation and Ensemble Learning
    Li Yuan-jie
    Cao Jian
    2012 IEEE 26TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS & PHD FORUM (IPDPSW), 2012, : 2274 - 2279
  • [48] Ensemble learning-based approach for automatic classification of termite mushrooms
    Duong, Thi Kim Chi
    Tran, Van Lang
    Nguyen, The Bao
    Nguyen, Thi Thuy
    Ho, Ngoc Trung Kien
    Nguyen, Thanh Q.
    FRONTIERS IN GENETICS, 2023, 14
  • [49] An Ensemble Learning Approach for Automatic Brain Hemorrhage Detection from MRIs
    Al Okashi, Omar Munthir
    Mohammed, Flath M.
    Aljaaf, Ahmed J.
    12TH INTERNATIONAL CONFERENCE ON THE DEVELOPMENTS IN ESYSTEMS ENGINEERING (DESE 2019), 2019, : 929 - 932
  • [50] Instance Segmentation and Ensemble Learning for Automatic Temperature Detection in Multiparous Sows
    Xue, Hongxiang
    Shen, Mingxia
    Sun, Yuwen
    Tian, Haonan
    Liu, Zihao
    Chen, Jinxin
    Xu, Peiquan
    SENSORS, 2023, 23 (22)