Research on SIMD Vectorization and Optimization of Non-Multimedia Applications

Author
LiYuXiang
Advisor
FengXiaoBing
School
University of Science and Technology of China
Major
Computer Architecture
Classification
TP311.11 Programming method
Degree
Doctoral dissertation
Year
2008
Downloads
110
Citations
5

Request the full text

Abstract

In recent years, the rapid development of the multimedia industry to promote the rise of multimedia extensions in general-purpose microprocessor architecture, compiler technology and thus promote the automatic vectorization technology research and development. However, with multimedia extensions support for floating-point operations, as well as increasingly sophisticated multimedia programs parallel to explore the use of multimedia extensions the vectorization has become an important means to improve the performance of these programs for non-multimedia program. And multimedia programs, program characteristics of multimedia programs more diverse, and there are a lot of non-continuous and non-aligned data reference, seriously affecting the program to quantify explore and to quantify the performance. This article SPEC CPU2000 floating-point program on a typical non-multimedia program for the first time single-instruction multiple data (SIMD) to quantitative analysis, and through a variety of popular compilers its automatic vectorization performance testing, analysis of the current vectorization technical defects; thus proposed several methods for improving: SIMD vectorization method based on local data reorganization, for the outer loop vectorization methods and the inner part of the statement SIMD vectorization method. These improvements to the original quantitative method is more suitable for the characteristics of multimedia programs, which widely accelerate the performance of multimedia programs. These several methods for improving up and down Pathscale compilation are implemented and tested in the Alpha platform; also AMD Operton platform, manually rewrite the code, and Intel compiler vectorization performance comparison. Improvement Algorithm framework to quantify joined the alignment analysis and optimization, select the appropriate cycle SIMD vectorization pre-optimized part to help the program more efficient vectorization module to quantify the excavation. This work has the following innovations: First: In this paper, two improved methods for traditional vectorization algorithm so that it can rely ring loop nest to quantify the inner layer contains, but also like the super-word parallel (SLP) algorithm as the statement in the basic block instruction-level SIMD vectorization. Traditional to quantify only the innermost loop SIMD vectorization cause the entire nested loop can not be vectorized, so when the innermost loop dependent ring; SLP to the quantitative method can not be achieved inner loop dependent ring the vectorization of a loop. Compared with similar studies, the proposed method at the same time maintain the original traditional SIMD vectorization capabilities, can avoid the innermost loop ring-dependent limit, and in turn the outer loops judge to quantify the feasibility and proposed cost model the SIMD vectorization performance gains, to select the appropriate SIMD vectorization strategy, generate SIMD vectorized code; to circumvent complex SLP vector instruction selection strategy to match the appropriate statement, small-scale part of the statement SLP to quantify. Second: This paper presents a method for multidimensional pointer, structure, array data structure loop SIMD vectorization. Existing SIMD vectorization method can not handle these loop structure, through a simple loop transformations can not help these loops to quantify. In this paper, for the SIMD local data to quantify the restructuring, through the local data reorganization to change the layout of data, the continuous data fetched into a continuous data memory access, to achieve the cycle SIMD vectorization. Compared with similar studies, the proposed method first loop containing a multi-dimensional pointer, structure, array data structure proposed SIMD vectorization solution, and gives a comprehensive cost model for assessing the local data reorganization income. Third: for SIMD vectorization pre-optimization techniques. To avoid SIMD vectorization blind loop transformations and scalar optimization, we propose to treat pre-estimate of the quantifiable benefits to quantify the circulation, thereby reducing the number of SIMD vectorization module processing loop, saving machine resources and prevent certain irreversible program transformation; at the same time to improve SIMD alignment analysis of the quantitative performance and optimization strategy. And compared to similar studies, for the first time clearly stated the income is expected to treat to quantify cycle, resulting in actual quantitative analysis and transformation before will be able to cycle to quantify an estimate, to avoid blind SIMD optimization; The proposed complete alignment analysis and optimization algorithms, aligned to optimize a variety of strategies used in combination, so as to maximize the alignment of the data to determine the cycle information.

Table of contents

Abstract 5-7 ABSTRACT 7-9 directory 9-12 Figures 12-14 Table of Contents 14-15 Chapter 1 Introduction 15-35 1.1 Background 15-22 1.1.1 SIMD extensions and application 15-18 1.1.2 SIMD vectorization on extension methods 18-21 1.1.3 Non multimedia program on SIMD vectorization methods pose new challenges 21-22 1.2 related work 22-30 1.2.1 The traditional method to quantify 22-24 1.2.2 Ultra-word parallel 24-26 1.2.3 Alignment analysis and optimization 26-28 1.2.4 Other 28-30 1.3 research content 30-33 1.3.1 topic significance 30 1.3.2 main topic of research and innovation 30-31 1.3.3 research platform 31-33 1.4 paper structure 33-35 Chapter 2 program features non-multimedia applications 35-53 2.1 SPEC CPU2000 test set 35 2.2 SPEC CPU2000 various compilers automatic vectorization 35-38 2.3 SPEC CPU2000 core cycling characteristics 38-52 2.3.1 core loop vectorization features 38-40 2.3.2 SIMD vectorization affect the four elements 40-41 2.3.3 is to quantify the characteristics of the core loop 41-43 2.3.4 is not to quantify the characteristics of the core loop 43-52 2.4 Summary 52-53 Chapter 3 traditional methods to quantify the improvement 53-81 3.1 Motivation 53-54 3.2 Comparison related work 54-55 3.3 Improved algorithm framework 55-59 3.3.1 algorithm thought 55-56 3.3.2 Implementation Framework 56-59 3.3.3 challenges facing 59 3.4 SIMD parallelism analysis 59-62 3.4.1 constructed statements dependency graph 59-61 3.4.2 SIMD parallelism analysis 61-62 3.5 SIMD benefit analysis 62-71 3.5.1 basic block as a unit of analysis 62-63 3.5.2 basic block parallelism scheme selection 63-64 3.5.3 SIMD cost model 64-71 3.6 SLP and VP algorithm combining 71-74 3.6.1 Part III SLP to quantify 71-72 3.6.2 select candidate sentences 72 3.6.3 SLP vectorization strategy 72-74 3.7 SIMD vectorization transform 74-76 3.7.1 loop structure transformation 74 3.7.2 SIMD operations generate 74-76 3.8 Test Results and Analysis 76-79 3.9 Summary 79-81 Chapter 4, based on local data reorganization SIMD vectorization method 81-105 4.1 Motivation 81-83 4.2 Comparison related work 83-85 4.3 algorithm framework 85-88 4.3.1 Algorithm The core idea 85 4.3.2 implementation framework 85-86 4.3.3 challenges facing 86-88 4.4 legitimacy analysis 88-89 4.5 Revenue Analysis 89-97 4.5.1 to quantify the benefits 90-91 4.5.2 Local data reorganization benefit analysis 91-97 4.6 restructuring plan 97-99 4.6.1 Basic program 97-98 4.6.2 adjustment programs 98-99 4.7 Restructuring transform 99-100 4.8 Test Results and Analysis 100-104 4.9 Summary 104-105 Chapter 5 pre-optimized SIMD vectorization 105-121 5.1 Motivation 105 5.2 Comparison related work 105-106 5.3 Choose the appropriate loop 106-109 5.3.1 judgment condition 106-107 5.3.2 Test Results 107-109 5.3.3 Conclusion 109 5.4 Alignment analysis and optimization 109-118 5.4.1 Alignment analysis 110-113 5.4.2 Alignment optimization 113-116 5.4.3 Test Results 116-118 5.4.4 Conclusion 118 5.5 Summary 118-121 Chapter 6 Conclusion 121-125 6.1 Full Summary 121-123 6.2 Future research directions 123-125 References 125-129 completed during the reading of academic papers 129-131 participate in research projects during reading 131-133 Thanks 133

Related dissertations

  1. Research on Profile-Guided SIMD Vectorization Identification and Optimization
  2. Research on Automatic SIMD Vectorization Recognization and Code Tuning Technology
    YaoYuan ·PLA Information Engineering University ·2012 ·Doctoral dissertation
  3. Analysis of Route Optimization Model Based on the Cycle Cost of the Whole Society
    TianBiJiang ·Harbin Institute of Technology ·2013 ·Master's thesis
  4. Research on Opencast Mine Road Alignment Design and Modeling
    ZhuMingHai ·Central South University ·2012 ·Master's thesis
  5. Study on3D Spatial Intelligent Route Selection Approach for Railway Alignments
    ZhaoHaiFeng ·Central South University ·2012 ·Master's thesis
  6. Characteristics of Functional Enzymes in Panax Notoginseng and Molecular Evolution Involved in Plant Triterpoid Biosynthesis Pathway
    WuYaoSheng ·Guangxi Medical University ·2008 ·Doctoral dissertation
  7. Study on Molecular Mechanism of the Effect of Liver Cirrhosis on Hepatocellular Carcinoma Carcinogenesis
    SongTianQiang ·Tianjin Medical University ·2003 ·Doctoral dissertation
  8. Isolation and Alignment Analysis of PHK1 Gene of Chinese Cabbage
    RenXiangLiang ·Liaoning Normal University ·2009 ·Master's thesis
  9. The Alignment Analysis on the Teaching Process of "Elements Chemistry" Based on the Curriculum Standards
    WuXianQiang ·East China Normal University ·2010 ·Master's thesis