Research on Programming Model and Compiler Optimizations for CPU-GPU Heterogeneous Parallel Systems

Author
TangTao
Advisor
YangXueJun
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP391.41 Image recognition device
Degree
Doctoral dissertation
Year
2012
Downloads
287
Citations
0

Request the full text

Abstract

With the continuous advancement of VLSI technology, more and more transistors on a single chip, and has reached the order of 10 million. However, limited by CMOS technology feature sizes, the clock speed of the chip in the limited reach to continue to enhance the space 4GHz after becoming increasing processor multi-core parallel computing performance, but also to take full advantage of the rich on-chip resources technical way. 4-8 nuclear Universal CPU market has become mainstream, and some dedicated processors such as stream processor contains tens to hundreds of processing cores. The paper selected is currently very popular but also great potential for development of a commercial stream processor architecture - GPU (Graphics Processing Unit) initiate the relevant study. GPU initially only for accelerated graphics calculation, and therefore its structure than the general purpose CPU is relatively simple, does not contain consuming chip resources, such as branch prediction and out-of-order execution and other complex logic functions, while the transistor resources more effectively used to increase the calculation of the parallel execution core, in order to enhance computing performance. Peak computing performance of GPU is also much higher than the same period of general-purpose CPU. With the gradual improvement of the GPU instruction-level features, and the continuous improvement of its programming interface, the GPU has been increasingly applied to the calculation of the non-graphical areas, the emergence of a whole new field of research - GPGPU (General Purpose Computation on GPUs). Use of CPU and GPU computing environment to provide a common basis for building heterogeneous parallel system, CPU, GPU accelerated array provides a strong peak computing power has become a very important field of high performance computing trends. , GPU in high-performance computing, desktop computing or embedded computing and other areas to be a very wide range of applications, the CPU-GPU heterogeneous systems, and GPU itself has also been widespread concern in a series of research projects, such as programming model compiler optimization, reliability optimization, and low-power optimization. Expand the subject from the point of view of programming and compiling, the first CPU-GPU heterogeneous parallel programming model, launched an in-depth analysis and optimization of storage access for GPU Finally, a compilation of the research model to achieve and optimization. The programming model is the interface between computing systems programmer, is an important indicator to measure system usability, directly affect the extent of the system is user acceptance. The programming model of the GPU-oriented in recent years gradually from the underlying graphics API development to a higher level of abstraction Brook, CUDA and OpenCL, is the programming model significantly improved to promote the rapid development of GPU to the direction of the general-purpose computing. However, compared to conventional CPU, GPU programming environment is still relatively complex and difficult for a large number of existing applications to be effectively inherited, and thus bring a huge software development and porting of overhead. To address this issue, this article from tradition, has been widely accepted OpenMP programming model for analysis from the perspective of parallel primitives with GPU stream programming model commonly used can be converted between OpenMP programming model that demonstrates the use of class the feasibility of the development program for the CPU-GPU heterogeneous nodes; Based on this idea, we design a class OpenMP programming model, added to the traditional model of OpenMP compiler guidance command stream processing characteristics, forming a OpenStream programming model. Subsequently, started from the point of view of storage access GPU performance analysis and optimization methods. \The early GPU does not contain the traditional sense of the data cache, memory hierarchy is used only for its on-chip cache and graphics processing related data. Driven by the demand for general-purpose computing, the GPU in recent years began to appear and the conventional CPU similar universal data cache in the study cache behavior and optimization methods is of great significance for enhancing the efficiency of GPU computing. In this paper, first of all oriented GPU This manycore architecture storage perception scalable acceleration than the model to analyze the relationship between the performance scalability of the storage hierarchy access, theoretically optimized core private The cache use its performance scalability importance. Then expand the of GPU program cache analysis and optimization. GPU program execution model makes the traditional cache analysis and optimization methods can not be applied directly to the GPU. Therefore, the combination of the GPU core execution model reuse program GPU metric, given reuse conversion to localized conditions and given the appropriate locality optimization; addition, more precise GPU program's cache behavior modeling stack distance map-based analysis method, we established a the GPU program's cache failure analysis model assessment GPU cache optimization methods laid the foundation for the future. Finally, the article discusses the OpenStream programming model compiler implementation, analysis and optimization methods discussed above into a unified compiler framework and given a basic compiler implementations. In this implementation, we focus on a CPU-GPU heterogeneous system-on-chip level data flow scheduling method, as much as possible to extend the lifetime of the data in the the GPU storage space within the full development of GPU-side data locality, thereby reducing redundant data communication between the CPU and GPU chips to improve program performance. The main innovations of this article contains the following sections: solve CPU-GPU heterogeneous parallel system programming complex issues, analyzed for heterogeneous parallel computing programming model node elements required for parallel mechanism the perspective of argumentation within the OpenMP programming model of the GPU programming model can be transformed, and laid a theoretical foundation based on the the OpenMP extensions GPU programming model; expansion based on OpenMP model compiler guidance command stream processing characteristics, forming a a new compile guidance based CPU-GPU heterogeneous parallel system programming model OpenStream simplified for the CPU-GPU heterogeneous parallel system application development and porting process; 2. guide GPU program-oriented on-chip memory hierarchy optimization, a storage-aware class-oriented GPU manycore architecture scalable acceleration than the model to analyze the the GPU performance scalability with the relationship between the on-chip memory hierarchy, from the angle of the scalable pointed out that the future manycore the design principles of the architecture and GPU program for the center of gravity of the on-chip memory hierarchy optimization; In order to improve the the GPU program's data locality, based on the classic reuse analysis theory, through the analysis of iterative sequence of the GPU core program, the classic serial program reuse and locality analysis method is extended to the GPU parallel execution model up, the GPU core program locality quantitative analysis model; given according to the locality of the process of solving two optimized GPU core program data locality : optimize reuse of migration and local income, effectively reducing the the cache failure rate of the GPU program, improve program performance; 4 for accurate modeling of GPU program cache failure behavior, based on a the classic cache miss equations and cache conflict analysis method establish a precise GPU program cache failure analysis methods, the cache failure analysis problem into a cache conflict analysis of two sub-problems thread blocks stack distance solving and thread blocks laid a valid assessment of the optimization method for the GPU the program cache foundation; designed for to verify programming model and optimize the effectiveness of the method, OpenStream programming model source to source compiler framework and given a basic compiler implementation; compiler implements a heuristic scheduling algorithm under the premise of maintaining data consistency as much as possible to extend the life cycle of the GPU-side data, development producer - consumer locality to reduce the redundant data communication between the CPU and GPU.

Table of contents

Summary 10-13 ABSTRACT 13-17 The first chapter 17-39 1.1 Background 18-22 < br /> 1.1.1 GPU heterogeneous systems technical challenges facing 18-20 1.1.2 20-22 1.2 22-33 1.2.1 heterogeneous systems programming model 23-29 1.2.2 Performance Optimization studies 29-33 1.3 research 33 - 37 1.3.1 OpenStream programming model 34 the 1.3.2 storage perception of scalability analysis 34-35 1.3.3 GPU program locality analysis optimization the 35-36 1.3.4 based GPU program cache stack distance Failure Analysis 36 1.3.5-OpenStream compiler framework and basic realization 36-37 1.4 major innovation 37-38 1.5 papers organization 38-39 second chapter the OpenStream heterogeneous systems parallel programming model 39-67 < br /> 2.1 heterogeneous system programming issues raised 39-43 2.1.1 OpenMP programming model 40-41 2.1.2 stream programming model 41 -42 2.1.3 problem description and solving ideas 42-43 2.2 the heterogeneous elements nodes programming model 43-44 2.3 OpenMP model describing ability analysis 44-56 2.3.1 parallelism, mechanism mapping the 45-52 2.3.2 mapping efficiency analysis 2.3.3 BenchMarks, 52-53 case studies 53-56 2.4 OpenStream programming model design 56-64 the 2.4.1 language mechanisms expansion 56-61 2.4. the 2 programmer Case 61-64 2.5 Chapter Summary 64-67 Chapter GPU scalable memory hierarchy aware speedup model 67-91 3.1 GPU on-chip memory hierarchy and scalable speedup the 67-71 3.1.1 GPU on-chip memory hierarchy 67-69 3.1.2 scalable speedup model 69-71 3.2 storage hierarchy-aware speedup model 71-82 3.2.1 architecture model 71-73 3.2.2 storage the hierarchical perception speedup 73-77 3.2.3 scalable, analysis 77-81 3.2.4 Design and optimization principles 81-82 the 3.3 experimental validation 82-90 3.3.1 experimental platform and test cases 82-84 3.3.2 speedup 84-86 <br / > 3.3.3 Capacity and bandwidth 86-90 3.4 Chapter Summary the 90-91 of GPU Chapter program localized analysis and optimization 91 - 113 the 4.1 issues raised and ideas 92-98 4.1.1 kernel execution model 92-93 4.1.2 basic concepts 93 - 96 4.1.3 locality analysis methods 96-98 4.2 based on localized analysis of iterative sequence 4.2.1 reuse, 98-103 distance nbsp reuse of local conditions; 98-101 4.2.2 101 4.2.3 locality solving 101-103 4.3 GPU program locality optimization 103-107 4.3.1 reuse migration 103-106 4.3.2 optimize locality gains are found; 106-107 of 4.4 experimental verification 107-111 4.4.1 experimental platform and test cases 107-108 4.4.2 Experimental results 108-111 4.5 Chapter Summary 111-113 Chapter stack distance the GPU-based program cache failure analysis 113-135 the 5.1 issues raised with the decomposition 113-118 5.1 .1 analysis difficulties 113-114 5.1.2 problem decomposition 114-118 5.2 cache failure analysis model 118-128 5.2.1 the thread block stack distance map 5.2.2 thread blocks between cache conflicts 118-127 access analysis 127-128 5.3 Experimental validation 128-132 5.3.1 test cases and platforms 128-129 5.3.2 single-threaded block stack distance map the cache failure rate of 129-131 5.3.3 131-132 5.4 Chapter Summary 132-135 Chapter the OpenStream compiler framework and achieve the 135-151 6.1 compiler framework and basic realization 135-140 6.1.1 compiler framework the 135-136 6.1.2 basic realization 136-140 6.2 compiler optimization 140-147 6.2.1 stream level optimization 140-147 6.2.2 kernel level optimization 147 the 6.3 experimental verification 147-150 <br / > 6.4 Chapter Summary 150-151 Chapter VII Conclusion and Outlook 151-153 7.1 thesis work summarizes 151-152 7.2 research Looking 152-153 Acknowledgements 153-155 Reference nbsp the achieved academic achievements 155-171 the author in the study period; 171 - 172

Related dissertations

  1. Research on Software Low-Power Optimization for Large-scale Heterogeneous Parallel System
  2. Implementation of Simulation and Compilation of Transactional Memory in Multi-Core Processors
    ZouFeng ·Shanghai Jiaotong University ·2008 ·Master's thesis
  3. Wireless sensor network node programming language design and implementation
    ZhuoZhengXing ·Zhejiang University ·2007 ·Master's thesis
  4. Network processor-based development environment compiler Research and Implementation
    WanZuo ·Northwestern Polytechnical University ·2006 ·Master's thesis
  5. Study on Reuse Logistics Network and It’s Cost Control Model for Waste Electronic and Electrical Products
    TaoShuangShuang ·East China Jiaotong University ·2013 ·Master's thesis
  6. Optimal Control and Scheduling of Networked System with Limited Channels
    ZhuChaoQun ·Dalian Maritime University ·2013 ·Doctoral dissertation
  7. Research of Efficient Computing Method on GPU-based LS-SVM
    BaoWenLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Research on Key Technologies of Network Traffic Analysis and System Implementation
  9. Research and Implementation of Scalable Server Cluster
    ZhangZuo ·South China University of Technology ·2013 ·Master's thesis
  10. Research on Compact Routing Technique in Named Data Networking
    LiuFeng ·Harbin Institute of Technology ·2012 ·Master's thesis
  11. A Study of GPU-based Parallel Learning to Rank
    FanXiXian ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Optimization of CUDA-based Parallel SOM Algorithm and Its Application
    ZhangJinChao ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. Collaborative Filtering and Its Application in Recommender Systems
    LengYaJun ·Hefei University of Technology ·2013 ·Doctoral dissertation
  14. Research on Modular Reuse of SHIF-Based Ontology
    XuLianJun ·Central South University ·2013 ·Master's thesis
  15. The Research and Realization of Scalable Co-Clustering Algorrithm Based on Mapreduce
    MaQiao ·Jiangxi Normal University ·2013 ·Master's thesis
  16. Research on Collaborative Filtering Recommender Algorithm Based on Clustering and Preference of Item Categories
    HuangYang ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  17. Research on GPU General Computing on Text Classification
    LiZhiLong ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  18. Research on GPU-based Flame Effects Technology
    DongChengChen ·Harbin Engineering University ·2013 ·Master's thesis
  19. Research on Fast Method for Triangular Mesh Recnostruction
  20. Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
    XiaoZuo ·Northeastern University ·2011 ·Master's thesis