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 条
  • [21] Automatic Semantic Categorization of News Headlines using Ensemble Machine Learning: A Comparative Study
    Bogery, Raghad
    Al Babtain, Nora
    Aslam, Nida
    Alkabour, Nada
    Al Hashim, Yara
    Khan, Irfan Ullah
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2019, 10 (11) : 689 - 696
  • [22] Automatic Road Extraction From Remote Sensing Imagery Using Ensemble Learning and Postprocessing
    Li, Junjie
    Meng, Yizhuo
    Dorjee, Donyu
    Wei, Xiaobing
    Zhang, Zhiyuan
    Zhang, Wen
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2021, 14 : 10535 - 10547
  • [23] Automatic categorization of medical documents in Afaan Oromo using ensemble machine learning techniques
    Dinsa, Etana Fikadu
    Das, Mrinal
    Abebe, Teklu Urgessa
    Ramaswamy, Krishnaraj
    DISCOVER APPLIED SCIENCES, 2024, 6 (11)
  • [24] A Hierarchical Ensemble Learning Framework for Energy-Efficient Automatic Train Driving
    Xi, Guohua
    Zhao, Xibin
    Liu, Yan
    Huang, Jin
    Deng, Yangdong
    TSINGHUA SCIENCE AND TECHNOLOGY, 2019, 24 (02) : 226 - 237
  • [25] Automatic detection of visual faults on photovoltaic modules using deep ensemble learning network
    Venkatesh, S. Naveen
    Jeyavadhanam, B. Rebecca
    Sizkouhi, A. M. Moradi
    Esmailifar, S. M.
    Aghaei, M.
    Sugumaran, V.
    ENERGY REPORTS, 2022, 8 : 14382 - 14395
  • [26] Deep ensemble learning for automatic medicinal leaf identification
    Sachar S.
    Kumar A.
    International Journal of Information Technology, 2022, 14 (6) : 3089 - 3097
  • [27] Exploiting ensemble learning for automatic cataract detection and grading
    Yang, Ji-Jiang
    Li, Jianqiang
    Shen, Ruifang
    Zeng, Yang
    He, Jian
    Bi, Jing
    Li, Yong
    Zhang, Qinyan
    Peng, Lihui
    Wang, Qing
    COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE, 2016, 124 : 45 - 57
  • [28] Automatic detection of small bowel tumors in wireless capsule endoscopy images using ensemble learning
    Vieira, Pedro M.
    Freitas, Nuno R.
    Valente, Joao
    Vaz, Ismael F.
    Rolanda, Carla
    Lima, Carlos S.
    MEDICAL PHYSICS, 2020, 47 (01) : 52 - 63
  • [29] Arrhythmia Using Ensemble Learning
    Alagambigai, P.
    Serin, J.
    Simeon, Jemima
    BIOSCIENCE BIOTECHNOLOGY RESEARCH COMMUNICATIONS, 2020, 13 (06): : 12 - 18
  • [30] An Automatic Detection of Breast Cancer Diagnosis and Prognosis Based on Machine Learning Using Ensemble of Classifiers
    Naseem, Usman
    Rashid, Junaid
    Ali, Liaqat
    Kim, Jungeun
    Ul Haq, Qazi Emad
    Awan, Mazhar Javed
    Imran, Muhammad
    IEEE ACCESS, 2022, 10 : 78242 - 78252