Using Machine Learning to Improve Automatic Vectorization

被引:39
|
作者
Stock, Kevin [1 ]
Pouchet, Louis-Noel [1 ]
Sadayappan, P. [1 ]
机构
[1] Ohio State Univ, Columbus, OH 43210 USA
基金
美国国家科学基金会;
关键词
Performance; COUPLED-CLUSTER;
D O I
10.1145/2086696.2086729
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Automatic vectorization is critical to enhancing performance of compute-intensive programs on modern processors. However, there is much room for improvement over the auto-vectorization capabilities of current production compilers through careful vector-code synthesis that utilizes a variety of loop transformations (e.g., unroll-and-jam, interchange, etc.). As the set of transformations considered is increased, the selection of the most effective combination of transformations becomes a significant challenge: Currently used cost models in vectorizing compilers are often unable to identify the best choices. In this paper, we address this problem using machine learning models to predict the performance of SIMD codes. In contrast to existing approaches that have used high-level features of the program, we develop machine learning models based on features extracted from the generated assembly code. The models are trained offline on a number of benchmarks and used at compile-time to discriminate between numerous possible vectorized variants generated from the input code. We demonstrate the effectiveness of the machine learning model by using it to guide automatic vectorization on a variety of tensor contraction kernels, with improvements ranging from 2x to 8 x over Intel ICC's auto-vectorized code. We also evaluate the effectiveness of the model on a number of stencil computations and show good improvement over auto-vectorized code.
引用
收藏
页数:23
相关论文
共 50 条
  • [1] Using Ensemble Learning to Improve Automatic Vectorization of Tensor Contraction Program
    Liu, Hui
    Zhao, Rongcai
    Nie, Kai
    IEEE ACCESS, 2018, 6 : 47112 - 47124
  • [2] Using Machine Learning in order to Improve Automatic SIMD Instruction Generation
    Trouve, Antoine
    Cruz, Arnaldo
    Fukuyama, Hiroki
    Maki, Jun
    Clarke, Hadrien
    Murakami, Kazuaki
    Arai, Masaki
    Nakahira, Tadashi
    Yamanaka, Eiji
    2013 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE, 2013, 18 : 1292 - 1301
  • [3] Vectorization of Bias in Machine Learning Algorithms
    Bekerman, Sophie
    Chen, Eric
    Lin, Lily
    Nez, George D. Monta
    ICAART: PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON AGENTS AND ARTIFICIAL INTELLIGENCE - VOL 2, 2022, : 354 - 365
  • [4] Guide Automatic Vectorization by means of Machine Learning: A Case Study of Tensor Contraction Kernels
    Trouve, Antoine
    Cruz, Arnaldo J.
    Murakami, Kazuaki J.
    Arai, Masaki
    Nakahira, Tadashi
    Yamanaka, Eiji
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2016, E99D (06) : 1585 - 1594
  • [5] Application of Machine Learning Techniques to Classify Twitter Sentiments Using Vectorization Techniques
    Padhy, Manjog
    Modibbo, Umar Muhammad
    Rautray, Rasmita
    Tripathy, Subhranshu Sekhar
    Bebortta, Sujit
    ALGORITHMS, 2024, 17 (11)
  • [6] Machine Learning for Vectorization Decision in OpenCL/SYCL Kernel
    He, Wenju
    Zou, Yuxin
    Zou, Feng
    PROCEEDINGS OF THE 2023 INTERNATIONAL WORKSHOP ON OPENCL, IWOCL 2023, 2023,
  • [7] Automatic flow classification using machine learning
    Anantavrasilp, Isara
    Schoeler, Thorsten
    SOFTCOM 2007: 15TH INTERNATIONAL CONFERENCE ON SOFTWARE, TELECOMMUNICATIONS AND COMPUTER NETWORKS, 2007, : 390 - +
  • [8] Automatic Cephalometric Analysis using Machine Learning
    Sobhana, M.
    Vemulapalli, Krishna Rohith
    Appala, Lahari
    Narra, Neelima
    2022 2nd International Conference on Intelligent Technologies, CONIT 2022, 2022,
  • [9] Automatic detection of pain using machine learning
    Winslow, Brent D.
    Kwasinski, Rebecca
    Whirlow, Kyle
    Mills, Emily
    Hullfish, Jeffrey
    Carroll, Meredith
    FRONTIERS IN PAIN RESEARCH, 2022, 3
  • [10] Automatic recognition of automobiles using machine learning
    Martinez-Camacho, Deborah G.
    Torres-Cisneros, Miguel
    May-Arrioja, Daniel A.
    Pena-Gomar, Mary-Carmen
    Guzman-Cabrera, Rafael
    DYNA, 2023, 98 (05): : 511 - 516