Studies on Data Locality and Compiler Optimization Techniques
- Author
- XiaJun
- Advisor
- YangXueJun
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Doctoral dissertation
- Year
- 2004
- Downloads
- 293
- Citations
- 3
- Compiler optimizations
- data locality
- Cyclic transformation
- data transformation
- false sharing
- data distribution
- 0-1 integer
- Planning
Abstract
With the level of technology progress and development of the processor architecture, the processor speed has far exceeded the speed of the memory, resulting in the emergence of the \In order to solve the \Hierarchical storage systems at all levels of the memory depends on the efficient use of program memory access locality characteristics locality optimization techniques for hierarchical storage systems has become one of the key technologies that give full play to the performance of a computer system, to solve the \This paper focuses on how the compiler optimization to improve the access of program memory locality. cache the localized optimization and memory locality optimization is a key issue in the locality optimization. To improve the cache locality can effectively reduce cache misses can effectively reduce the inter-processor data communication, and improve memory locality. In addition to localized, false sharing also have an important impact on program execution performance. Therefore, this article is mainly optimized for cache locality, optimize and improve memory locality locality and at the same time eliminate the problem of false sharing conducted in-depth research. Innovation made in this paper is mainly reflected in the following points: (1) in data conversion technology to optimize cache locality, most of the current methods only consider affine subscripts optimization, and optimization methods are relatively complex , some also limit the types of data transformation, there are certain inadequacies. Address these inadequacies, we explore the depth of the localized nature of data transformation to improve data access, creatively put forward a new optimized data access projection layering technology based on its data transformation framework. The framework using projection technology to optimize spatial locality of data access and use of data at the same time layering technology to solve the problem of overlapping projection data. The framework can not only handle affine array subscript, but also to deal with many non-affine complex array subscript, at the same time it is also simple and direct way to determine the optimal memory layout of the array elements and the optimization of array access data transformation matrix and makes access spacing as small as possible. The experimental results show that the data transformation framework based on the projection layering technology can effectively improve the spatial locality of data access. (2) use of non-singular loop transformation techniques to optimize cache locality, some of the current methods to optimize temporal locality is not sufficient, some optimization method is more complex, and some are not systematically consider the program simultaneously temporal locality and spatial locality optimization problems, there are some shortcomings. For these deficiencies, this paper proposes a new nonsingular loop transformations based on linear Expressed locality optimization methods. The method uses a minimal set of linear independent vectors to linear Expressed array access subscript expression, which to construct a non-singular transformation matrix to optimize array accesses temporal locality and spatial locality. The method can fully develop temporal locality of nested loop array access, very easy to determine whether it can access a single array or multiple array access time or spatial locality optimization and nested loops given temporal locality and spatial locality simultaneously optimized. The experimental results show that the transformation locality optimization method can effectively improve the data access time and spatial locality-based the linear nonsingular Expressed cycle. (3) at the same time using the cyclic transformation and data conversion techniques to optimize cache locality, current methods are only nested loop of the tight coupling processing, and some methods use a type of data transformation is limited, and some depend on the Wan National Defense Science and Technology University Graduate School Dissertation heuristic rules, there are only simple data access patterns, there are some shortcomings. Address these inadequacies, combined cycle conversion and data transformation, a tree store layout, the use of O-1 integer programming to solve global locality optimization problems. In this method, we use tree storage layout diagram to describe the characteristics of the locality of the program, and solving locality optimization problem is transformed into solving the problem of the the tree storage layout optimal path set, so that we can use 0 1 integer programming to solve global locality optimization problems. Further, the use of 0 to an integer programming to solve the localized optimization problem can be so that the method does not rely on any heuristic search rules. We limit the cost model and the cyclic transformation data transform space, the method can find the optimal solution. This method not only tightly coupled nested loops can be processed generally loose coupling nested loop processing, and both for processing data access is access along a dimension suitable for handling data access along diagonally The moldings access. The experimental results show that the method can significantly improve the locality and the 0 - 1 integer programming use did not significantly increase compile time. (4) optimize memory locality, some of the current methods of nested loops and array access in the form made to certain restrictions, and some do not consider the problem as much as possible to maximize the degree of parallelism, although some consider the problem but not given to how the data distribution, data replication and offset constant alignment, etc., which can not be as small as possible makes data traffic not considered. The above inadequacies depth study of memory locality optimization problems in distributed shared memory and distributed memory computing environments, and propose a theoretical framework on the integration of data space and calculated based on the framework of an effective global with the data partitioning method. The method to calculate as much data as possible in the space is divided into a number of independent collection to ensure as much as possible to maximize the development of the parallelism of the program, and according to the division of the computing space, using data fusion technology to organize data to make the calculation and data can be effectively aligned, to achieve as much as possible the development of the degree of parallelism and reduce the purpose of communication. The method can be calculated the arbitrary dimensional array of multiple nested loops and data partitioning, and as much as possible the development of parallel computing division and data partitioning, the method can also be combined with the constant alignment of data replication and offset natural together, which can make the data communication volume as small as possible. The experimental results show that the calculated data partitioning method based on the integration of data space can effectively reduce communication and improve the performance of program execution. (5) the depth of the locality and false sharing relationship, utilization data transform and scheduling technology to improve the Board?
Table of contents
The diagram index 7-9
table index 9-10
summary for 10-12
ABSTRACT 12-15
The first chapter 15-30 the
§ 1.1 subject research background the 15-17 1.1.1
processor memory performance differences 15-16
1.1.2-level storage system the 16-17
1.1.3 locality, 17
§ 1.2 research content 17-21
1.2 .1 subject sources
17 1.2.2 research focus to research 17-21
1.2.3 Difficulties § 1.3 Related research 21
21-26
the 1.3.1 cache locality optimization research 21-23
the 1.3.2 memory the locality optimization research work is 23-25 ??
1.3.3 false sharing elimination of the aspects related research 25-26
§ 1.4 of this paper work and innovation 26-28
§ 1.5 basic terminology 28-29
§ 1.6 thesis structure the 29-30 Chapter
data transformation technology-based cache locality optimization 30-58 <br / > § 2.1 data access track the 31-34
§ 2.2 projection layering technology-based data transformation framework 34-36
§ 2.3 optimization of a class of affine subscript array spatial locality 36-51
2.3.1 spatial locality optimization problem solving 36-48
2.3.2 locality 48
2.3 .3 loosely coupled nested loops the the 48-49 2.3.4 multiple nested
cycle 49
2.3.5 conflict-free access to the Criterion 49-51
2.3.6 reduce the extra storage space required by the data transformation 51
§ 2.4 optimized with complex subscript array spatial locality 51-56
§ 2.5 comparison with related work to § 2.6 Chapter Summary 56-57
the 57-58
Chapter loop transformation technology-based cache locality optimization 58-77 the
§ 3.1 to optimize temporal locality 59-64
3.1.1 optimize the time of a single array access locality 59-62
3.1.2 optimize multiple arrays access time locality 62-64
§ 3.2 optimize spatial locality 64-69
3.2.1 optimized single array access spatial locality 64 - 66
3.2.2 to optimize multiple array access spatial locality 66-67
3.2.3 optimized with a the temporal locality array access space locality 67 - 69
§ 3.3 while optimizing array accesses temporal locality and spatial locality the 69-72
§ 3.4 construct not only satisfy the data-related restrictions and can to optimize locality cycle transformation matrix the
§ 3.5 and related work 72-75 75-76
§ 3.6 Chapter Summary 76-77
Chapter combined cycle conversion and data transform the technology of the cache locality optimization 77-99
§ 4.1 data optimal storage layout 78-81
§ 4.2 TMLG its constructor 81 - 88
4.2.1 sub-nested loops 81-83
4.2.2 RNG and RLG constructed 83-85
4.2.3 TMLG of 85-87
4.2.4 nodes consideration 87-88
§ 4.3 0-1 integer programming based global locality optimization problem solving 88-93
4.3.1 Description of the problem 88
4.3.2 integer variables and objective function the 88-89 4.3.3 Restrictions
89-91
4.3 .4 examples 91-93
4.3.5 conditional control statements and dynamic data layout 93
§ 4.4 and related work comparing 93-94 <br / > § 4.5 Chapter Summary are found; 94-99
Chapter memory locality optimization nbsp The; dominate 99-161 on
§ 5.1 calculated based on the fusion of data space and data partitioning method 100-104
§ 5.2 divided calculate the space the 104-111 solving distance-vector space
5.2.1 105-107
5.2.2 Linear calculation divided the
107-111 § 5.3 data space division and fusion 111-132
5.3.1 linear data divided 111-114
5.3.2 the standard form of the linear data by 114-117
5.3.3 data replication 117-119
fusion 5.3.4 data space 119-125
5.3.5 compatibility with the standard form of linear data divided 125-132 the
§ 5.4 calculated data to the mapping of virtual processor space 132-141
5.4. a situation 132-134
5.4.2 situation 134-137
5.4.3 situation 137-138
5.4.4 Examples 138-141 for
§ 5.5 nested loop calculations and data partitioning methods 141-152
§ 5.6 code transform 152-156
§ 5.7 and related work 156-159 the
§ 5.8 Chapter Summary 159-161
Chapter improve locality and at the same time eliminate the false sharing 161 - 176
§ 6.1 optimize spatial locality 162
§ 6.2 to eliminate false sharing 162-173
6.2.1 Parallel outer loop are found; 163-170
6.2.2 parallel the innermost loop 170-173
§ 6.3 multiple arrays locality raise false sharing eliminate 173-174
§ 6.4 and work 174-175
§ 6.5 Chapter Summary 175-176
Chapter VII of data locality the compiler prototype system and experimental results 176-195 the
§ 7.1 data locality prototype compiler 176-180
a 7.1.1 SUIF2 compiler Profile 176-177
7.1.2 Pass Introduction to Programming 177-178
7.1.3 prototype system 178-180
§ 7.2 The experimental results are found; 180-194
7.2.1 Chapter II experimental results 180-182
7.2.2 Chapter experimental results 182-184
7.2.3 Chapter experimental results 184-189
7.2.4 the fifth chapter of the experimental results 189-192
7.2.5 Chapter VI experimental results to § 7.3 Chapter Summary 192-194
194-195
the Chapter VIII Conclusion 195-198
§ 8.1 summary of the work 195-196
§ 8.2 Research Prospects 196-198
PhD during the papers 198-199
studying for a doctorate during participation in the research project 199-200
Acknowledgements to References 200-201
201-207
Related dissertations
- Fusion and Partition
- Research on Intermediate Code Optimization in GCC
- A Research of Post-occupancy Evaluation about the Market in Changsha City
- The Study of Impact of Free Sample Delivery in Retail Terminal on Impulsive Buying Behavior
- Studies on Project Investment of Star Hotel in Changsha
- Study on the Rural Tourism Plan of Donghu Town in Deyang
- Research on the IT Project Management in the Application of Financial Statistical Analysis System Construction
- Research on Marketing Strategies of Jingjiang Crab Soup Packets
- Human Resource Strategic Planning and Study for GR Corporation: Based on Competency
- The Study of H Company’s Information Construction Planning
- A Case Study on the Strategy of Manager Development of the Enterprise SLD
- The Research and Planning on Human Resource of the Fifth Aerospace Institute
- Research on Development of Jinan Urban Agriculture
- Songxi Xian Zheng pier construction of modern leisure agriculture demonstration park
- Research on Theory and Practice of Planning for Modern Agriculture Demonstration Area
- Research on the Development about Leisure Tourism of Beautiful Village
- Research on Tourist-estate-themed Project Development
- The Research of Hubaoe Urban Logistics System in the Industrial Clusters Perspective
- The Logistics Park Planning and Research for the West of Jiujiang City
- Logistics Development Mode of Zhejiang Province’s Coastal Port