Research on Analysis and Optimization for OpenMP Program
- Author
- MaHongTu
- Advisor
- ZhaoRongCai
- School
- PLA Information Engineering University
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Doctoral dissertation
- Year
- 2009
- Downloads
- 241
- Citations
- 2
- OpenMP
- Static Single Assignment
- Disposable boundary downturn
- The barrier synchronization variable static single assignment
- May be executed in parallel relationship
- Data and computing division
- Barrier synchronization elimination and replacement
Abstract
With the wide application of multi-core processors in multimedia computing, embedded devices, personal computers, business servers and high-performance computers and many other fields, humanity is facing the third time since the birth of the computer software crisis. The majority of researchers proposed a number of programming model to adapt to the multi-core architecture, which model but did not show a clear advantage. Industry-standard OpenMP programming model is supported by a range of hardware and software vendors (such as DEC, Intel, IBM, SGI, DOEASCI) shared memory programming, programming is simple, incremental development, supports multiple languages, support multiple operating systems (UNIX, Linux, Windows, etc.), portability, etc.. Most of the commercial compiler has begun to support the compilation of OpenMP programs, the OpenMP program analysis and optimization technology research is being increasingly widespread attention. The paper around the OpenMP program correctness and performance optimization work, through in-depth study of the static single assignment form, the based barrier synchronization variables static single assignment of an OpenMP program may be executed in parallel relationship analysis algorithm; combination of automatic parallelization dependency analysis, data and computing division, focusing on the loop-level OpenMP program optimization techniques. The main contribution of the paper and innovations include: 1. Proposed by introducing the concept of disposable boundary downturn, based on the the multivariate dominant tree? Function placement algorithm. Dominated boundary reversal is observed from the angle of the cross-junction disposable set of boundary nodes, a node disposable boundary reversal junction dominant tree height must be smaller than the junction point. Bottom-up dominating tree traversal, and placed more than one variable based on the concept of disposable boundary reversal? Function, there is no need to calculate disposable set of boundary nodes, simplifying the placing step? Function reduces the barrier synchronization variables static single assignment the construction cost. Extended OpenMP control flow graph node structure, based on the number of virtual execution threads may execute in parallel relationship criterion. OpenMP control flow graph according to the the OpenMP language structure semantic, for each node allocated virtual execution thread ID, if the two nodes belong to a stage of the procedure and the type ID of a virtual thread of execution, these two nodes in the statement exists may be executed in parallel relationship to avoid past parallel control flow graph with two copies of said waste resulting from the relationship between the threads execute in parallel space. On the basis of in-depth study of the static single assignment form, the proposed algorithm based barrier synchronization variables static single assignment of an OpenMP program may be executed in parallel relationship analysis. The barrier synchronization statement barrier synchronization variables as local variables defined in the parallel structure, static single assignment form, explicitly to the stage of OpenMP programs to reduce the relationship between the solution process may be executed in parallel on the control flow the number of graph traversal, incremental and can relationship maintenance may execute in parallel. OpenMP for loop-level program design and implement the integration of automatic parallelization technology parallel structure combined with the expansion algorithm. SPMD area through the consolidation and expansion of the parallel structure, the use of scalar analysis, dependency analysis, and access to the array data and computing technology to extract cycle characteristics of the loop-level OpenMP program barrier synchronization elimination and replace, improve program performance. OpenMP programs oriented computing and data by barrier synchronization optimization algorithm. To calculate, as far as possible to find the consistency of data partitioning, data and computation decomposition information optimized OpenMP program barrier synchronization, reducing the control cost of synchronization, and back-end compiler to reduce the cost of data synchronization possible opportunity and optimization support.
Table of contents
Table of Contents 8-9
Figures 9-10
Summary 10-12
ABSTRACT 12-14
The first chapter 14-22
1.1 multicore architecture 14-15
1.2 parallel programming methods 15-16
1.2.1 automatic parallelization tools 15
1.2.2 explicit parallel programming 15-16
1.3 OpenMP programming model 16-18
1.4 dissertation content 18-21
1.4.1 OpenMP program may be executed in parallel relationship analysis 18-19
1.4.2 OpenMP program optimization loop-level technology research 19-21
1.5 thesis organization 21-22
CHAPTER control flow graph relations of domination 22-34
2.1 Introduction 22-23 < br /> 2.2 the control flow graph and related algorithms 23-25 ??
2.3 dominance concepts and algorithms 25-30
2.3.1 forward and backward relations of domination domination relations 25
2.3.2 dominated node set 25-27
2.3.3 direct control node set 27-28
2.3.4 disposable boundary node set 28-30
2.4 dominance test results 30-32
2.4.1 test platform 30-31
2.4. two test sets introduced 31-32
2.4.3 dominance test results 32
2.5 DJ Figure 32-33
2.6 Summary 33-34
Chapter static single Assignment technology 34-52
3.1 Introduction 34-35
3.2 traditional static single assignment 35-38
3.2.1 static single Assignment description 35-36
3.2.2 traditional φ function display algorithm 36-37
3.2.3 variables rename 37-38
3.3 based multivariable control reversal boundary φ function display algorithm 38-46
3.3.1 related research 38-39 < br /> 3.3.2 Cooper domination boundary nodes algorithm 39-40
3.3.3 disposable boundary reversal 40-41
3.3.4 pendulum multivariate function φ put algorithm 41-43
3.3.5 Case Study 43-44
3.3.6 algorithm correctness and complexity analysis 44
3.3. 7 test Results 44-46
3.4 reduce redundancy φ function 46-47
3.5 deltification create static single assignment research 47-51 <br / > 3.5.1 Choi 's deltification create a static single assignment method 47-48
3.5.2 deltification create static single assignment algorithm 48-50
3.5 .3 example analysis 50-51
3.6 Summary 51-52
Chapter OpenMP program may be executed in parallel relationship between 52-72
4.1 Introduction 52-53
4.2 example program 53-54
4.3 OpenMP programming model 54-56
4.4 OpenMP construct the control flow graph 56-60
4.4.1 related research 56-57
4.4.2 OpenMP syntax scope and limited 57-58
4.4.3 OpenMP control flow graph is defined 58
4.4.4 OpenMP construct the control flow graph 58-60
4.5 OpenMP parallel relationship analysis algorithm program may 60-69 <br / > 4.5.1 related research 60-61
4.5.2 barrier synchronization and static single assignment form 61-62
4.5.3 static variables based barrier synchronization MHP single assignment algorithm 62-66
4.5.4 Case Study 66-68
4.5.5 algorithm correctness and complexity analysis 68-69 < br /> 4.6 deltification calculations may be performed in parallel relationship 69
4.7 may be executed in parallel relationship analysis and testing 69-71
4.7.1 Comparative analysis 69-70
4.7.2 compete in the data detection 70
4.7.3 computation time test results 70-71
4.8 Summary 71-72
Chapter OpenMP program optimization loop-level technology research 72-108
5.1 Introduction 72-73
5.2 background 73 - 75
5.2.1 program intermediate representation 73-74
5.2.2 system of linear inequalities representation 74-75
5.3 loop-level optimization of OpenMP programs 75-77
5.3.1 OpenMP programming model of the three procedures 75-76
5.3.2 OpenMP program loop-level optimization techniques 76-77 < br /> 5.4 parallel structure combined with the expansion 77-81
5.4.1 parallel architecture combined with the extended principle 77-78
5.4.2 parallel architecture combined with the extended algorithm realization 78-81
5.5 barrier synchronization optimization techniques 81-84
5.5.1 related research 81
5.5.2 barrier synchronization eliminate 81-83
5.5.3 barrier synchronization replace 83-84
5.6 dependency-based analysis to eliminate redundant synchronization 84-91
5.6.1 dependency analysis technique 84-85
5.6.2 dependency analysis in the application of parallel structure extension 85-86
5.6.3 dependency analysis technology in the application of parallel structures merge 86-87
5.6.4 dependency analysis based synchronization elimination algorithm 87-88
5.6.5 Case Study 88-90
5.6.7 algorithm complexity analysis and correctness proof 90-91
5.7 based on data and calculations into eliminating redundant synchronization 91-98 <br / > 5.7.1 related research 91
5.7.2 distributed memory architecture, the data and computation decomposition 91-92
5.7.3 OpenMP program's data and computing division 92-94
5.7.4 and calculations based on the data partition eliminate redundant synchronization algorithm 94-95
5.7.5 Case Study 95-97 <br / > 5.7.6 algorithm complexity analysis and correctness proof 97-98
5.8 synchronization replacement technology 98-103
5.8.1 OpenMP implementation neighbor synchronization 98-99
5.8.2 OpenMP parallel to achieve water 99-101
5.8.3 and calculations based on data synchronization divided replacement algorithm 101-102 <br / > 5.8.4 Case Study 102-103
5.9 optimized OpenMP code generation 103-106
5.9.1 problem Description 103
5.9. 2 select the data block size divided 103-104
5.9.3 load Balancing between threads 104
5.9.4 owner calculation principles discussed 104 - 106
5.10 test results 106-107
5.11 Summary 107-108
Chapter VI conclusions and future work 108-110
6.1 thesis contribution and innovation 108-109
6.2 further research 109-110
References 110-119
Author Biography doctoral the main work completed during the degree 119-120
Thanks 120
Related dissertations
- Parallel Hybrid PVS Algorithm Based on OpenMP and its Application
- Study of Multicore-based Parallel Algorithm for Constructing Extremal Graphs
- The Research of Shared CMP Cache Management
- Parallelizing Research and Implementation of Speech Recognition
- Research on Application of Parallel Computing to Marine Water Age Spectrum Simulation
- The Hybrid MPI+OpenMP Parallel Method of GRAPES-global Model
- Fast Belief Propagation-based Arallel Topic Modeling Techniques
- Multi-Core Programming for Dynamic Follow-Tree Index of Full Text Search Research
- Research and Implementation of Facial Image Fatigue Detection System Based on Gabor
- Research and Application of Image Processing in Parallel Programming Method
- Research on OMP-based Compressed Sensing Algorithm
- Research and application of image restoration algorithm of diffuse multi-core architecture system based on
- Parallelization of a Fabric Defect Segmentation Method Using OpenMP
- Research on Optimization of Parallel Programs for Embedded Multicore System
- Sparse SSA Algorithm of Partial Redundancy Elimination
- Parallel Programming and Optimization Based on Multi-core Processors
- Research on the Parallel Algorithms of0-1Knapsack Problem Based on Divide and Conquer
- Shuffled Flog Leaping Algorithm for RNA Secondary Structure Prediction and Its Parallelization
- Interpolation of Climatic Resources in Multi-core Research on Parallel Computing Environment
- Design and Optimization of Hash Algorithms Based on Multi-core CPUs