Research on Accelerating Krylov Subspace Method with GPU

Author
QinJin
Advisor
HuQingFeng
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP391.41 Image recognition device
Degree
Master's thesis
Year
2010
Downloads
145
Citations
2

Request the full text

Abstract

In recent years, the architecture, programming model and related aspects of general purpose graphics processing unit (GPGPU) have been developed rapidly, the programmability of GPU have been improving all the time, and the peak performance of GPU grows from several Gflops to several Tflops. The main application of GPU has shifted from image processing to gener-al-purpose computing, and more and more researchs are focusing on accelerating scientific problems with GPU. In scientific problems, utilizing iterative method to solve the large sparse linear systems is the key in many fields including the fluid dynamics, numerical weather predic-tion, oil and seismic date processing, materials simulation and design. The Krylov subspace me-thod is an efficient algorithm solving the large sparse system, which both has less storage re-quirement and stable convergence. However, solving these problems on CPU consumes lots of time which cannot meet the practical requirements. Accelerating iterative method that solving large sparse linear system with GPU can not only reduce the time but also improve the compu-ting efficiency, which can be generalized to speed up a lot of practical problems.After analyzing the architecture and CUDA programming model of GPU, we discussed the difficulties in adapting Krylov subspace method to NVIDIA GPU, including the wasting of the storage space introduced by sparse matrix; the implementation of sparse-matrix multiplication in GPU; the implementation of vector inner-product operation in GPU、the decreasing of the per-formance bringed by kernel overhead; the lack of reduction operation on NVIDIA GPU; the need of special optimization methods on NVIDIA GPU and so on. Through the cooperation of CPU and GPU, we proposed some novel methods to realize the algorithm in NVIDIA GPU on CUDA programming model. The main contributions in this paper are as follows:We proposed some arithmetic optimization method faced on CUDA program model, deeply studied the features of NVIDIA GPU, at first, we noticed that the NVIDIA GPU has a complex storage hierarchy, including registers, shared memory, local memory, global memory and other two kinds of read-only memory—texture memory and constant memory. These memorizers have great differences in speed and capacity, while optimize the algorithm we should make full use of those high speed memory, such as the shared memory, texture memory and even the registers. In CUDA program model, one of the concept that has keen relation of the hardware is warp, while run the program in NVIDIA GPU, the warp is the real unit of execute. In our optimization of Krylov subspace method, we try to fulfill the need of warp or half-warp.We describes a new compress format of sparse matrix based on DIA compress format (CDIA), the CIDA compress format of sparse matrix can obtain higher bandwidth and can fulfill the requirement of coalesced access, CDIA compress format include an operation of transpose of the matrix, by doing this we can get higher memory bandwidth, and improved the memory access performance of GPU, and the CIDA compress format did great effect in some important GPU kernel. While used in SPMV, it enhanced performance about 50.3% that with ordinary DIA compress format.We proposed the sparse matrix-vector multiplication in GPU, made full use of the CDIA compress format, in CUDA program model of NVIDIA C1060, and gave each thread fine-grained task distribution. By optimizing the memory access, data transportation and other aspect of GPU, In the data experiment, our best implementation achieves up to 39.6Gflop/s in single-precision and 19.6Gflop/s in double-precision, enhanced performance about 7.6% and 17.4% that of Bell and Garland’s.We implemented the vector inner-product operation in GPU, we know that the reduction operation is the base of the vector inner-product operation, by make full use of the shared mem-ory of GPU, the performance of vector inner-product operation increased 36.2 times in sin-gle-precision instance.We proposed several optimization measures for Krylov subspace method in NVIDIA GPU, there are several method for optimization: structure of the program, communication between the CPU and GPU, and use the high speed memory, especially the shared memory, by doing this, we can improve the bandwidth of memory access, we can also use pinned memory. In our data ex-periment, our best implementation achieves up to 11.3Gflop/s in double-precision and 16.7Gflop/s in single-precision, make the speed 9.2 and 13.57 times faster then in CPU.Different matrix dimension have different performance this was determined by the archi-tecture of GPU, our experiment indicated that the GPU have great power in accelerate linear system.

Table of contents

Abstract 8-10 ABSTRACT 10-12 first chapter 12-19 1.1 subject background 12-14 < br /> 1.1.1 GPU Development Overview 12-14 1.1.2 GPUs to accelerate sparse linear system 14 1.2 work 14-16 < br /> 1.3 the challenges 16-17 1.4 In this paper, content and innovation 17-18 1.5 The paper is organized 18-19 two GPU and Krylov subspace methods 19-29 2.1 NVIDIA GPUs 19-21 2.1.1 of the GT200 architecture 19-20 2.1.2 the Fermi (GT300) architecture 20-21 2.2 CUDA programming model 21-26 2.2.1 host and equipment 22-23 2.2.2 memory hierarchy structure 23-25 ?? 2.2.3 thread hierarchy 25-26 2.3 the Krylov sub-space method 26-29 2.3.1 Krylov subspace methods introduced 26-27 2.3.2 the Krylov sub-space methods to accelerate research 27-29 sparse diagonal matrix vector multiplication 29-38 3.1 data processing method 29-32 3.1.1 sparse matrix approach 29-31 3.1 on the GPU the .2 CDIA compressed storage format 31-32 3.2 sparse diagonal matrix-vector multiplication GPU to accelerate the achievement of 32-34 3.3 sparse diagonal matrix-vector multiplication optimization 34-37 3.3.1 multi-threaded parallelism reduce the thread switching overhead 35 3.3.2 optimize storage with access 35-36 3.3.3 using the shared memory; 36-37 3.4 Summary 37-38 Chapter Krylov subspace methods on the GPU to achieve 38-49 <br / > 4.1 the division of computational tasks 38-41 4.1.1 task partitioning principle of 38-39 4.1.2 The division of tasks 39-41 < br /> 4.2 core computing division 41-42 4.2.1 core computing 41 4.2.2 core computing division 41-42 4.3 Krylov subspace method 42-46 4.3.1 sparse to accelerate the realization of the diagonal matrix-vector multiplication GPU 42 4.3.2 product operation in GPU accelerate the achievement of the 42-44 4.3.3 Grid and Block dimension design 44-46 4.4 the Krylov sub-space method optimization 46-48 4.4.1 program structure optimization 46 4.4.2 host and equipment communication optimization 46-47 4.4.3 memory optimization 47 - 48 4.5 Summary 48-49 the fifth chapter of the performance evaluation 49-54 5.1 lab environment 49 5.2 matrix vector multiply the test results 49-51 5.2.1 CDIA formats on the GPU performance testing 49-50 5.2.2 performance test nbsp sparse diagonal matrix-vector multiplication ; 50-51 51-52 5.4 the Krylov sub-space method within 5.3 plot the test results, test results 52-54 Chapter VI Conclusion 54-56 6.1 work summary 54-55 6.2 Looking 55-56 thank 56-58 <br / > References 58-61 of academic achievements obtained during the reading 61

Related dissertations

  1. Research of Efficient Computing Method on GPU-based LS-SVM
    BaoWenLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  2. Optimization of CUDA-based Parallel SOM Algorithm and Its Application
    ZhangJinChao ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. Research on GPU General Computing on Text Classification
    LiZhiLong ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  4. Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
    XiaoZuo ·Northeastern University ·2011 ·Master's thesis
  5. Research on Text Detecting and Removal in Video Image Based on CUDA
  6. Rapid Implementation of the Small Infrared Target Detection Algorithm on CUDA
  7. Parallel Face Detection CUDA Accelerating
  8. Research on Boundary Face Method Base on GPU-acceleration
    YuLieXiang ·Hunan University ·2013 ·Master's thesis
  9. Research on Applying GPU Parallel Computation to Medical Image Processing
    LiYingMin ·Tianjin University ·2012 ·Master's thesis
  10. Research of Image Registration and Mosaic Technology Based on GPU
    ZouGang ·Tianjin University ·2012 ·Master's thesis
  11. Research and Implementation of Parallel Resampling Algorithm Based on GPU
    YuYinPing ·Northeastern University ·2013 ·Master's thesis
  12. The CAPTCHA Machine Pattern Recognition Technology Based on GPU Research and Application
  13. Study of Visual Tracking Algorithm Based on CUDA
    ZhangPing ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Improved Push-Relabel Algorithm for Graph Cuts And Design and Implementation on the GPU
    LiZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  15. Research and Implementation of Hashalgorithm Library on GPU
    LiKai ·South China University of Technology ·2013 ·Master's thesis
  16. Design and GPU Implementation of the DSP Algorithm in the Coherent Receiver of Fiber Communication
  17. Research of Real-time Acoustic Imaging Array Positioning Technology
    YuLiZhi ·Xiangtan University ·2013 ·Master's thesis
  18. Research on Simulation Methods Based on GPU for Small Delay Faults
    PengMingMing ·Hunan University ·2013 ·Master's thesis
  19. Hyperspectral image mixed pixel decomposition parallel optimization based on GPU
  20. High-Order Difference Forward Modeling and Reverse-Time Migration Based on CUDA
    XiangFei ·Ocean University of China ·2013 ·Master's thesis