Research and Implementation on Compiler Framework for Translating Ansic C into CUDA C

Author
ZhuZuo
Advisor
WangZhiYing
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP391.41 Image recognition device
Degree
Master's thesis
Year
2011
Downloads
193
Citations
0

Request the full text

Abstract

Recently, GPU (Graphics Processing Unit) has been widely used in high-performance computing applications such as biomedical, financial analysis, physical simulation and database processing due to powerful computing capability of GPU. GPGPU (General-purpose computation on GPU) is proposed when GPU is used in the other areas except graphics rendering.It is a chanllenge to make best use of computing resources due to GPU complexity CUDA (Compute Unified Device Architecture) introduced by NVIDIA Corporation has provided an efficient solution for managing many-core processors such as GPUs. Compared with previous programming models, there are two improvements in CUDA. One is the introduction of a unified processing architecture, and the other is the employment of on-chip shared memory. These improvements make GPU more suitable for general purpose computing with the help of CUDA. However, programmers should be familiar with underlying architecture of GPU in order to develop high-performance applications because of the muti-level thread structure and memory hierarchy in CUDA-enabled GPU.We propose a source-to-source compiler framework to reduce the burden for GPU programmers. The framework is not only able to automatically generate applications which can excuse on heterogeneous system composed of CPU and GPU, but also can perform optimization to improve parallelism of the applications. The innovative work in thes thesis can be summarized as follows.1. A compiler framework for translating ansic C into CUDA code is proposed. ICuda is able to release the programmer from the details of the structure of the GPU and CUDA, and to improve the efficiency of developing high-performance parallel programs. Compared with most of the existing frameworks which are only adapted to the determinant or matrix-based applications, ICuda is able to deal with general applications.2. A scheduling approach of paralleling loop structure is proposed. The structure of data and loop should be transformed in order to adapt to the multi-core architecture of programming model when the serial code is parallelized. Accordingly, we propose the scheduling approach of subscript transformation and distributing the access to shared variables. Before the parallelization, nested sequential loops are transformed to single sequential loop so as to simplify the index of data. During the parallelization, the access to the shared variable is distributed to the different copies in order to reduce the overhead of the memory access.3. We propose a novel optimization for memory access based on CUDA. The single most important performance consideration in programming for CUDA architecture is coalescing global memory accesses. However, it is difficult to transform non-coalescing accesses into coalescing mode. Alternatively, we propose a novel and efficient strategy to achieve memory optimization by binding read-only data into text memory space.We implement the ICuda framework based on SUIF2 system. We adopt Parboil as the benchmark and propose a detail scheme of performance testing and analysis. Experimental results demonstrate the validity and efficiency of the optimization method and ICuda framework presented in this thesis.

Related dissertations

  1. Improved Push-Relabel Algorithm for Graph Cuts And Design and Implementation on the GPU
    LiZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  2. The Parallelization Research of Map Algebra of Spacial Analysis in Heterogeneous Computing Environment
    ZhouSiBo ·China University of Geosciences ·2013 ·Master's thesis
  3. Real-time Study of Augmented Reality 3D Registration Algorithm Based on GPGPU
    ZhangYan ·Zhengzhou University ·2012 ·Master's thesis
  4. The Research of Virtualization on General-purpose Computation on Graphic Processing Unit
    ShiLin ·Hunan University ·2012 ·Doctoral dissertation
  5. Real-time Video Motion Detection Algorithm Research Based on CUDA
    GaoBiao ·Xi'an Technological University ·2012 ·Master's thesis
  6. CUDA Based Moving Object Detection
    LiangLiang ·Beijing Jiaotong University ·2012 ·Master's thesis
  7. Study on Parallel List Intersection Algorithm on CPU/GPU Hybrid Platform
    WangHuaiChao ·Suzhou University ·2012 ·Master's thesis
  8. Parallel Implementation of TOUGHREACT Based on GPU
    ZhuTong ·Jilin University ·2012 ·Master's thesis
  9. Research on the Gpu-based Parallel Algorithms for Point-based Multiple-point Geostatistical Simulation
    HuangTao ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  10. The Design of Parallel Programming Simplification Based on CUDA
    Tang ·Dalian University of Technology ·2013 ·Master's thesis
  11. The Research on Optimization and Implement of Motion Estimation Search Algorithm Based on CUDA
    NiFanWei ·Hunan University ·2010 ·Master's thesis
  12. A Kind of Method to Generate the Surface of Ocean by Using FFT (Fast Fourier Transform) Algorithms on GPU (Graphic Processing Unit)
    XuShan ·Beijing University ·2007 ·Master's thesis
  13. Study on the Techniques for 3D Reconstruction and Visualization of Medical Images Based on GPU
    LiuLei ·Southern Medical University, ·2008 ·Master's thesis
  14. Research on Performance Optimization of Heterogeneous Platform Based on CPU-GPU and Multicore Parallel Programming Model
  15. A Study of Gpu-based Real-time Decoding Technique for High-definition Videos
  16. Accelerating Typical SVM Algorithms Through CUDA Platform
    XuXu ·South China University of Technology ·2010 ·Master's thesis
  17. Complicated-Cloth Simulation on GPUs
    RongXuTao ·Fudan University ·2010 ·Master's thesis
  18. Motion Estimation in H.264 Implementation of Parallel Computing
  19. High-Performance Processing of Massive Remote Sensing Data and Its Visualization Application
    ZhouSongTao ·Wuhan University ·2013 ·Doctoral dissertation
  20. The Research of ICT Non-destructive Testing Volume Rendering Technology Based on CUDA