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 条
  • [41] Using Machine Learning to Improve Cylindrical Algebraic Decomposition
    Zongyan Huang
    Matthew England
    David J. Wilson
    James Bridge
    James H. Davenport
    Lawrence C. Paulson
    Mathematics in Computer Science, 2019, 13 : 461 - 488
  • [42] Using Machine Learning to Improve Cylindrical Algebraic Decomposition
    Huang, Zongyan
    England, Matthew
    Wilson, David J.
    Bridge, James
    Davenport, James H.
    Paulson, Lawrence C.
    MATHEMATICS IN COMPUTER SCIENCE, 2019, 13 (04) : 461 - 488
  • [43] Learning to care: Using machine learning to improve prediction of COPD admissions
    Pinnock, Hilary
    Agakov, Felix
    Orchard, Peter
    Agakova, Anna
    Paterson, Mary
    McCloughan, Lucy
    Burton, Chris
    Anderson, Stuart
    McKinstry, Brian
    EUROPEAN RESPIRATORY JOURNAL, 2015, 46
  • [44] Automatic Vectorization of Tree Traversals
    Jo, Youngjoon
    Goldfarb, Michael
    Kulkarni, Milind
    2013 22ND INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT), 2013, : 363 - 374
  • [45] Automatic SIMD Vectorization for Haskell
    Petersen, Leaf
    Orchard, Dominic
    Glew, Neal
    ACM SIGPLAN NOTICES, 2013, 48 (09) : 25 - 36
  • [46] GRIL: A 2-parameter Persistence Based Vectorization for Machine Learning
    Xin, Cheng
    Mukherjee, Soham
    Samaga, Shreyas N.
    Dey, Tamal K.
    TOPOLOGICAL, ALGEBRAIC AND GEOMETRIC LEARNING WORKSHOPS 2023, VOL 221, 2023, 221
  • [47] Automatic tagging web services using machine learning techniques
    Lin, Maria
    Cheung, David W.
    2014 IEEE/WIC/ACM INTERNATIONAL JOINT CONFERENCES ON WEB INTELLIGENCE (WI) AND INTELLIGENT AGENT TECHNOLOGIES (IAT), VOL 2, 2014, : 258 - 265
  • [48] Automatic IR-Drop ECO Using Machine Learning
    Lin, Heng-Yi
    Fang, Yen-Chun
    Liu, Shi-Tang
    Chen, Jia-Xian
    Li, Chien-Mo
    Fang, Eric Jia-Wei
    2020 IEEE INTERNATIONAL TEST CONFERENCE IN ASIA (ITC-ASIA 2020), 2020, : 7 - 12
  • [49] Automatic Tabla Stroke Source Separation Using Machine Learning
    Shete, Shambhavi
    Deshmukh, Saurabh
    ADVANCES IN COMPUTING AND DATA SCIENCES, PT I, 2021, 1440 : 234 - 243
  • [50] Automatic Simplification of Legal Texts in Portuguese Using Machine Learning
    Alves, Alexandre
    Miranda, Pericles
    Mello, Rafael
    Nascimento, Andre
    LEGAL KNOWLEDGE AND INFORMATION SYSTEMS, 2023, 379 : 281 - 286