Optimization of Array Data-Flow Analysis and Research and Implementation of Array Privatization Technology
- Author
- RenHua
- Advisor
- ZhaoRongCai
- School
- PLA Information Engineering University
- Major
- Computer System Architecture
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 63
- Citations
- 5
- automatic parallelizing
- data dependence analysis
- array data-flow analysis
- SUIF
- LWT algorithm
- perfect loop nest
- imperfect loop nest
- array privatization
Abstract
Program parallelism analysis and program optimization are two important contents for a parallelizing compiler. Program optimization techniques are various equivalent program transformations in order to take full advantage of the parallel hardware. The precondition of the equivalent program transformations is that the data dependence in the program keeps unchangeable. This thesis researches the optimization of the array data-flow analysis and the array privatization technique on program optimization.Data dependence analysis is the basic step in detecting loop level parallelism. It must include sufficient information to support the code optimizations and transformations. But most of the testing algorithms of traditional data dependence analysis are conservative and the results are not accurate. To determine if a loop can be parallelized by privatizing the work arrays and to maintain the exactness of data communications among the computing nodes for distributed memory machines, we need the more accurate dependence analysis. This thesis introduces the algorithm of the array data-flow analysis proposed by Stanford University. By analyzing the loop structure, the thesis points out the deficiencies of the original algorithm of the array data-flow analysis and gives corresponding solutions. Then, the thesis presents the designing and the implementation of the optimized array data-flow analysis. The optimized array data-flow analysis aims at a couple of read and write array references of the same array when they appear in a given model of the imperfect loop. Finally, the performance is detected by testing some instances. The experiment result indicates that the optimized techniques of the array data-flow analysis can ensure correctness and enhance the analysis capability and extend the range of the problem to be solved effectively.Array privatization is one of the most effective loop transformations for the exploitation of parallelism. This transformation technique privatizes arrays according to the information of the data dependence analysis, which eliminates the memory-related dependences, i.e. anti and output dependences, to make the loop execute parallel. By analyzing the basic rules of array privatization and the determinant conditions of the parallelizable loop, this thesis proposes an array privatization technique that is significant for the exploitation of loop parallelism. Then, the thesis presents the designing and the implementation of the effective array privatization technique based on the accurate array data-flow analysis. Finally, the performance is detected by testing some instances. The experiment result indicates that the array privatization method introduced in the thesis is effective for the exploitation of loop parallelism.
Table of contents
Table of Contents 6-7
Figures 7-8
Summary 8-9
ABSTRACT 9-10
The first chapter 10-14
1.1 research significance 10-11
1.2 topics sources 11-12
1.3 development in the world 12
1.4 thesis content 12-13
1.5 thesis is organized 13-14
Chapter II data dependence analysis 14-24
2.1 data-dependent basic concepts 14-15
2.1.1 data dependencies related definitions 14-15
2.1.2 Classification of data dependencies 15
2.2 data-dependent equations 15-16
2.3 traditional data dependence analysis 16-17
2.3.1 Traditional data dependence testing methods 16-17
2.3.2 deficiencies of traditional data dependence analysis 17
2.4 Accurate array data flow analysis 17-23
2.4.1 array data flow analysis related concepts 18-19
2.4.2 algorithm concepts involved 19
2.4.3 array data flow analysis algorithm 19-21
2.4.4 array data flow analysis instance 21-23
2.5 Chapter Summary 23-24
Chapter array data flow analysis algorithm optimization 24-42
3.1 SUIF Introduction 24-27
3.1.1 SUIF system scalability 24-25
3.1.2 SUIF system libraries 25-27
3.2 cycle read and write references for the bifurcation diagram 27-28
3.3 non- perfect nested loop array data flow analysis techniques 28-40
3.3.1 Optimization concepts involved 28-29
3.3.2 Limitations of the original algorithm and solutions 29-31
3.3.3 non- perfect nested loop array data flow analysis to achieve 31-37
3.3.4 Optimization of application examples 37-40
3.4 testing and performance analysis 40-41
3.4.1 use cases and test results 40-41
3.4.2 Performance Analysis 41
3.5 Summary 41-42
Chapter array technology research and implementation of privatization 42-57
4.1 array privatization technical sense 42-43
4.2 array privatization 43-47
4.2.1 loop parallelization decision rules 43-44
4.2.2 array privatization basic criteria 44-45
4.2.3 valid array privatization 45
4.2.4 examples 45-46
4.2.5 Initial replication and final value written back 46-47
4.3 array data flow analysis based on an array of privatization technology 47
4.3.1 LWT obtained from an array of information needed to privatize 47
4.4 array data flow analysis based on an array of privatization technical realization 47-54
4.4.1 array privatization realization of ideas 48
4.4.2 algorithm data structure 48-49
4.4.3 array privatization implementation process 49
4.4.4 array can be privatized determine 49-50
4.4.5 array privatization necessity 50-52
4.4.6 Application examples 52-54
4.5 testing and performance analysis 54-56
4.6 Chapter Summary 56-57
Conclusion 57-59
References 59-61
Author Biography master's degree major work accomplished during 61-62
Thanks 62