Research on Cost Model and Memory Optimization Techniques for Heterogeneous Processor
- Author
- HuangPinFeng
- Advisor
- ZhaoRongCai
- School
- PLA Information Engineering University
- Major
- Computer Science and Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 6
- Citations
- 0
- Heterogeneous processor
- Parallelization Compilation
- Heterogeneous architecture
- Parallel Programming Model
- Parallel Cost Model
- memory optimization
Abstract
Nowadays heterogeneous processors have been widely used in high performance computing. They integrate different types of cores in a single chip, providing huge potential for parallel computing, but bringing great challenge at the same time. One has to master higher level programming model and richer architecture knowledge before he can write parallel codes that make full use of heterogeneous resources. This is a tough job for ordinary programmers. So parallelization compilation becomes the primary way to quickly obtain efficient parallel programs.Presently parallelization compilation for heterogeneous architecture has born many research fruits, but there are still a lot of problems needed to be analyzed and resolved. This dissertation targets at OpenACC heterogeneous parallel programs, discusses the cost model and memory optimization techniques used in automatic parallelization. The contents of research mainly include:1. Aiming at the problem that’traditional compilation frameworks cannot suit to new architectures, a parallelization compilation system called Auto-ACC is designed for a domestic heterogeneous processor. The system performs parallel loop recognition and parallel region optimization based on the parallel cost model oriented to heterogeneous architectures, then partitions the loop data across different slave cores’local memory correctly with several memory optimization methods, lastly generates parallel codes that can be run efficiently on heterogeneous processors. Experiments demonstrate that the system can generate OpenACC programs correctly, which achieves high performance on target platforms.2. Existing parallel cost models have some drawbacks when evaluating loops’execution performance on heterogeneous processors. To solve the problem, a novel cost model for heterogeneous architecture is designed. According to heterogeneous processors’characteristics, the model introduces different parameters to describe the impact of different computing capabilities of master and slave cores, different access delays of main and local memory, and data transfer between them, enhancing the accuracy of loops’parallel profit evaluation. Experiments show that the model reduces the parallelization of negative profit loops effectively, and promotes the generated parallel program’s performance.3. To exploit the limited local memory space in slave cores, a multi-dimensional self-adaptive memory optimization framework for the local data memory is proposed. The framework manages the data referenced by parallel loops efficiently through five memory optimization methods. Firstly, take advantage of array blocking to partition the loop arrays, making partitioned data tiles satisfy the restriction of local memory space. Secondly, through data distribution guided by array access pattern analysis, essential elements of regular access arrays are extracted and transferred to local memory, and irregular access arrays are mapped to software cache directly. Thirdly, by array transposition, change the store sequence of array dimensions, and make the array store with the loop nest access way, realizing transformation from inconsecutive array access to consecutive access. Fourthly, aggregate multiple discrete scalars to a data unit by scalar aggregation, so as to reduce data transfer times and improve scalars’transfer efficiency. Fifthly, through creating accelerative data region, shift data transfer operations from the loop nest inside to outside, making data transfer happen only before and after loop computation, avoiding multiple data copy in inner parallel loop during the execution of outer sequential loop. Experiments show that these memory optimization methods optimize the data transfer, store and access procedures from different levels and different granularities, resulting in the significant performance improvement of generated OpenACC parallel programs.
Table of contents
Abstract 4-5
ABSTRACT 5-10
LIST 10-12
List of Tables 12-13
the first chapter 13-23
1.1 background 13-15
1.1.1 development of heterogeneous processors 13-14
1.1 .2 heterogeneous processors on the challenges faced by the programming 14-15
1.2 research significance domestic and foreign research status quo 1.3 15-16
16-19
1.3.1 cost model 16-18
1.3.2 storage Optimization 18-19
1.4 dissertation research 19-20 <br / > 1.5 the main contribution and innovation 20-22
1.6 papers structural arrangements 22-23
Chapter parallelizing compiler framework for heterogeneous structure 23 -33
2.1 heterogeneous parallel computing architecture 23-24
2.2 heterogeneous parallel programming model 24-27
2.2.1 related research 24 -25
2.2.2 OpenACC parallel programming model 25-27
2.3 OpenACC for automatic parallelization 27-31
2.3.1 Open64 Profile 28-29
2.3.2 parallelizing compiler framework design 29-31
2.4 Chapter Summary 31-33
Chapter III for heterogeneous parallel structures cost model 33-47
3.1 issues raised ; 3.2 related research nbsp 33-34
34
3.3 cycle parallelism analysis 34- 35
3.4 build parallel cost model 35-40
3.4.1 serial execution cycle time 36-38
3.4.2 parallel execution cycle time 38-40
3.4.3 parallel benefit assessment 40
3.5 acceleration cycle cost model of parallel recognition algorithm based on parallel adjacent 40-42
3.6 for parallel loops parallel merger and expansion 42-45
3.6.1 parallel proposed merger and expansion 42-43
3.6.2 parallel algorithms merger and expansion achieve 43-45
3.7 Chapter Summary storage optimization 45-47
chapter for local data storage 47-69
4.1 background storage optimization framework 47-48
4.2 multi-stage adaptive 48-49
4.3 data flow analysis 49-50
4.3.1 basic the concept 49
4.3.2 research foundation 49-50
scale adaptive array 4.4 data block 50-56
4.4.1 problem proposed 50-51
4.4.2 related research 51
4.4.3 array block the introduction of clause 51-53
4.4.4 the ideal solution to solve an array of sub- blocks 53-56
4.5 array data access patterns to guide the distribution of 56-61
4.5.1 issues raised 56
4.5.2 related research 56-57
4.5.3 data Distribution introduce clauses 57-58
4.5.4 data Distribution clause automatically generated 58-61
4.6 master from an array of collaboration transpose 61-64
4.6.1 issues raised 61
4.6.2 clause introduced an array transpose 61-63
4.6.3 clause array transpose automatically generated 63-64
4.7 multi- scalar fusion gathered 64-65 <br / > 4.7.1 issues raised 64
4.7.2 data package to introduce clauses 64-65
4.7.3 data package clause automatically generated 65
4.8 minimalist peripheral data transmission 65-67
4.8.1 issues raised 65
4.8.2 accelerate the introduction of the data area pragma 65 -66
4.8.3 accelerate automatically generate the data area pragma 66-67
4.9 Chapter Summary 67-69
chapter test and experimental analysis 69-81
5.1 test environment preparation 69
5.1.1 hardware environment 69
5.1.2 software environment 69 <br / > 5.2 testing and analysis 69-80
5.2.1 parallel cost model test 69-72
5.2.2 local storage optimization technology testing 72-79
5.2.3 joint Test 79-80
5.3 Chapter Summary 80-81
Chapter VI Conclusion 81-83
Thanks 83-85
references major work 85-91
resume study authors completed a master's degree during 91
Related dissertations
- Research on the Key Techniques of Programming Model and Compiler Optimization for Many-core GPU
- Research of Parallel Computing on CPU/GPU Heterogeneous Architecture
- Parallel Acceleration Technique for Electromagnetic Scattering Problems Based on GPU Computing Platforms
- Research of Heterogeneous Control Systems for Large Telescopes
- Research on Many-core GPU Architectures
- Study and Implementation on Performance Optimization of Hospital Information System Based on Oracle Database
- Researches and Application of Mapreduce Parallel Programming Model for Cloud Computing
- Researches of MapReduce Parallel Programming Model and Scheduling Algorithm for Heterogeneous Multi-core Systems
- Study on Parallel Programming Models
- Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
- Research of Multi-level Parallelism Programming Pattern for Hybrid Parallel Computing Environment
- Research on the Memory Management of Digital Video Decoders
- Parallel Algorithms Research of Particle Transport on Heterogeneous Architecture
- The Implement and Performance Analysis of Parallel Computing Platform
- Analysis & Design of Architecture for Shared System of Heterogeneous Database
- Skeleton oriented parallel computing system
- Study and Implementation of High Performance Parallel Hierarchy Stream Memory System
- Development and Improvement of Multimedia Applications Based of BREW
- The Design and Implement of Parallel MPEG-4 Video Encoder Based on MDSP
- Testbench and Parallel Programming Model for Network On-Chip