Optimizing Sparse Matrix-vector Multi Based on OpenCL

Author
ZhaoJiaQiang
Advisor
GuoDongWei
School
Jilin University
Major
Software Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2012
Downloads
176
Citations
1

Request the full text

Abstract

In the past few years we have seen in the mass GPU parallel computing in an importantrole. From the unit area and the power consumption of the unit to see, the computing power ofGPU is much higher than the CPU. Although the past in the large-scale parallel operation onthe GPU to the programming is an important challenge, but now manufacturers for the user toprovide a more efficient, intuitive development platform, such as CUDA, OpenCL otherprogramming tools that allow more developers more easily more efficient in the GPUplatform programming. OpenCL has become an important current GPGPU solution.Sparse matrix vector multiplication is mathematics and engineering used in class one ofnumerical algorithm, and a lot of numerical algorithm and can be converted to matrixcalculations, such as image processing and engineering science of information, solving linearequations, fast Fourier transform, the optimization. Solve the optimization problem of thesparse matrix vector multiplication can improve the performance of engineering sciences.This paper first with GPU computing as the background, the development process andthe GPU to some basic concepts do some introduction. Second, expounds the structure of theGPU series of AMD, starting from the hardware, through understanding the structure of thehardware platform for optimization do some preparation, and OpenCL architecture fromintroduces the platform model, executive model, a memory model, programming model fourmodel about OpenCL of operation.In the realization of the optimization based on CSR format, we first configuration of thedevelopment environment OpenCL. It is for the SDK in head file and program the setting ofthe library. For any two rows of matrix operation is no data and logic dependent relationship,so the traditional serial algorithm can parallelization, namely in the traditional serial algorithmin the code is the cycle of outer performance can be parallel processing. And a thread dealwith one line of data, a wave processing one line of data, a thread and a wave of compromiseone line of data processing method three methods. With a thread in a line of data processingmethod, then we found load balancing and access memory problems of continuity, with awave treatment after a line of data to solve. For most of the line in the zero elements havenumber are far larger than64matrix, we found a wave processing one line of data can’t playvery well performance, with a thread processing after a line of data and a wave processing oneline of data of compromise solution method.Finally, to this paper summarizes briefly and looking forward to the future of heterogeneous the workbench SpMV optimization of.

Table of contents

Summary 4-5 Abstract 5-9 Chapter 1 Introduction 9-15 1.1 subject background 9-11 1.2 basic Concepts meaning 11-13 1.3 Introduction to research and papers 13-15 Chapter 2 architecture and OpenCL GPU architecture 15 - 32 2.1 OpenCL framework 15-22 2.1.1 OpenCL four models 15-22 2.2 OpenCL C 22-24 <br / > 2.2.1 built-in data types 22-24 2.3 GPU architecture 24-31 2.3.1 traditional CPU architectures 24-26 <br / > 2.3.2 AMD GPU architecture 26-27 2.3.3 Nvdia GPU architecture 27-31 2.4 OpenCL compiler system 31-32 <br / > Chapter 3 OpenCL programming optimization techniques 32-42 3.1 memory access optimization techniques 32-36 3.1.1 global memory fetch mode 32 -34 3.1.2 local memory fetch mode 34-36 3.2 data transfer optimization 36-37 3.3 control flow optimization 37 - 38 3.4 other optimization techniques 38-42 3.4.1 built-in math functions 38-39 3.4.2 thread mapping 39-40 3.4.3 use reasonable data structure 40-42 Chapter 4 of SPMV based OpenCL optimized introduce 42-53 4.1 development environment 42-45 4.2 CSR sparse matrix format 45-46 4.3 a wave processing line data 46-47 4.4 a thread and a wave of folding method 47 4.5 other optimization methods 47-49 4.5.1 using image object 48 4.5.2 kernel quantify 48-49 4.6 testing and analysis 49-53 4.6.1 test environment 49 4.6.2 optimization strategy results 49-53 Chapter 5 Conclusion 53-54 5.1 summary 53 5.2 Prospects 53-54 References 54 -56 Thanks 56

Related dissertations

  1. OpenCL-based Real-time KD-Tree and Raytracing for Dynamic Scene
    LuHeQi ·Zhejiang University ·2011 ·Master's thesis
  2. Research on the Optimization of the System of Urban-rural Integrated Residents Social Pension Insurance of Laiwu City
    HaoXiaoJuan ·Shandong Agricultural University ·2013 ·Master's thesis
  3. Optimization Study of a Insurance Company Ningxia Branch’s Business Structure
    SunZuo ·Ningxia University ·2014 ·Master's thesis
  4. The Optimization of Fund Contract in the Perspective of Governance Structure
    YaoZhuangLong ·Central South University ·2013 ·Master's thesis
  5. The Personal Loans Centre Process Optimization Study of Ccb Shaanxi Branch
    LiuMing ·Northwestern University ·2012 ·Master's thesis
  6. Research on Optimization of commercial bank loans business processes Chinese micro enterprise
    ZhouXiaoDan ·Inner Mongolia University ·2013 ·Master's thesis
  7. Optimization of Commercial Bank Credit Rating Index System for SMEs
  8. An Optimization Study on Proscenium Support Facilities of Commercial Banks on Queuing Theory
    ChenMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. The Credit Process Optimization of A Bank
    WangHe ·Liaoning University ·2012 ·Master's thesis
  10. The branches of commercial banks, credit risk management process - a case study of A bank D branch cases
    JinYanXin ·Yunnan University of Finance ·2013 ·Master's thesis
  11. The Research of Mode of Corporate Governance of China’s Trust Industry Defect and Optimization
    HuZuo ·East China Normal University ·2013 ·Master's thesis
  12. Under the New Situation of the International Monetary System Unbalance Influence on China’s Foreign Exchange Reserves and Its Optimization
    LinLeTing ·Dongbei University of Finance ·2013 ·Master's thesis
  13. The Study on Constructing Harmony in Urban Communities
    ZhaoZuoZuo ·Yanshan University ·2012 ·Master's thesis
  14. An Investigation of the Management System of Yancheng Local Tax Inspection
    YanXueJun ·Suzhou University ·2012 ·Master's thesis
  15. Based on the Subjective Well-being to Optimize the China’s Rural Public Expenditure
  16. Research on China’s Tax Cost and Optimization
  17. Analysis on Tax Scale Optimization of Liaoning Province
    LuZuoZuo ·Shenyang University ·2013 ·Master's thesis
  18. Study on the optimization of tax system of China's current stock market
    WangBing ·Capital University of Economics ·2014 ·Master's thesis
  19. The Optimal Decision of Slotting Fee and Percentage of Revenue under the Consignment Model
  20. Developing Strategy for Service Industry of the Nankai District Tianjin
    MaoZuoJin ·Tianjin University ·2012 ·Master's thesis