Research on Parallel Program Performance Tuning on Multi-Core Computing Platform

Author
LvHai
Advisor
ZuoRuiHua
School
Beijing University of Technology
Major
Applied Computer Technology
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Doctoral dissertation
Year
2012
Downloads
397
Citations
0

Request the full text

Abstract

It has been a long time that computer industries use the method of scalingfrequency and increasing instruction level parallelism continuously to improveprocessor performance. In recent years, this method is coming to the end for sure, dueto the limitation of memory bandwidth, instruction level parallelism, and power wall.On the other hand, a more powerful processor is urgent need in application fields suchas multimedia, virtualization for their demand for high performance computing. As aresult, multi-core processor has become the de-fact solution to improve peakperformance given the power and frequency-limited single-thread performance. Thatis, abandon instruction-level parallelism and frequency-scaling in favor of theexponential scaling of the number of compute cores per microprocessor. The newprocessor architecture provides massive thread level parallelism, resulting intremendous potential performance. However, it requires efficient parallel program,which is a task that existing software tools are ill-equipped for. In fact, theperformance portability must be guaranteed on multi-core computers, the ability towrite a program once and not only have it deliver good performance on thedevelopment computer, but on all multicore computers today and tomorrow.In such a case, layered parallel computing model is used for guidance in thisarticle. From the perspective of application-drived parallel program performanceoptimization, this article designed a new parallel multi-core processor computingmodel, which can be used in the architecture of multi-core processor chip. Based onthis model, g-scan algorithm is designed which has good extendibility together withhigh performance after analyzing and optimizing some fundamental parallelalgorithms. To verify the newly designed parallel computing model and algorithms, ascalable multi-core processor simulator is developed. At the last, newly designedparallel algorithm is applied to OpenSees which is a finite element software widelyused in structure engineering. The main innovations include:(1) The architecture of the current multi-core processor chip is the research objectin this article. A new parallel computing model named UPMM model which can beused in the architecture of multi-core processor chip is designed after analyzing thecharacteristic of the interconnection of cores on chip and the cache hierarchy. The costof data access of UPMM model is analyzed Based on data access pattern which isderived from basic unit of numerical computation and scientific computingapplications algorithms. At the end, the performance and cache misses of the matrixmultiplication are studied in detail based on UPMM model and conclusion of the costof data access. The experiments proved that UPMM model can give exact analysis ofparallel computing performance and cost of cache accessing. (2) This article designed and implemented a flexible, scalable multi-coreprocessor chip simulator by using SystemC, based on SimpleScalar tool set. Thefunctional experiment shows that all cores in this multi-core processor chip simulatecan simultaneously execute instructions. In contrast with real multi-core computer,this multi-core processor simulator has almost the same parallel execution behavior asreal multi-core processor, which is proved that this simulator can do an accuratesimulation of multi-core process. The performance experiment showed that themulti-core simulator perform more efficient than SimpleScalar’s sim-outordersimulator. Finally, the performance prediction experiment proved the accuracy whenusing UPMM model to analyze parallel algorithm.(3) In this article, the parallel scan algorithm is studied in detail, which is widelyused in other algorithm, such as sorting, minimum spanning tree, sparse matrix-vectormultiplication. Based on the analysis and the comparison of parallel scan on PRAMmodel and on UPMM model, order of data accessing is changed, so that time andspace locality of data accessing is better. A new parallel scan algorithm named g-scanalgorithm is designed, which is based grouping the scan elements. g-scan algorithm isapplied to sparse matrix-vector multiplication, resulting in a new sparse matrix-vectormultiplication algorithm. Experiments showed that group based parallel scanalgorithm and scan based sparse matrix-vector multiplication algorithm have a betterperformance and better scalability. This research provides a high performance basicfor many scientific applications such as finite element analysis, molecular dynamicsanalysis.(4) OpenSeesSP, a finite element software widely used in structure engineering, isthe research object in this article. Three performance bottlenecks are found inOpenSeesSP by using performance analysis tools. They are matrix decomposition,communication among process and solving linear/non-linear equation systems. In thisarticle, a parallel UTDU maritx decomposition is developed to solve the firstperformance bottleneck and threads communication supported in MPI2are used tosolve the second one. At last, the sparse marix-vector multiplication algorithm newlydesigned in this article is applied to solve the third performance bottleneck.Experiment shows that these three performance optimization schemes greatly improvethe OpenSeesSP efficiency.

Table of contents

Summary 4-6 Abstract 6-11 Chapter 1 Introduction 11-25 1.1 Background 11-15 1.1.1 The emergence and development of multi-core processors challenge 11-13 1.1.2 multicore processors bring 13-14 1.1.3 parallel Computing new development opportunities 14-15 1.2 research status 15-19 1.2.1 parallel algorithm level 15-16 1.2. 2 parallel program implementation level 16-17 1.2.3 parallel program execution environmental dimension 17-18 1.2.4 the main problem exists 18-19 1.3 research ideas 19-21 1.4 significance 21 1.5 sources and research topics 21-22 1.6 papers structural arrangements 22-25 Chapter 2 Overview of parallel algorithm design models 25-35 2.1 shared storage model 25-26 2.1.1 PRAM model 25-26 2.1.2 APRAM model 26 2.2 distributed storage model 26-28 2.2.1 BSP model 26 -27 2.2.2 LogP model 27 2.2.3 NHBL model 27-28 2.3 consider the model memory access 28-30 2.3.1 HMM model and the BT model 28-29 2.3.2 UMH model and PMH model 29 2.3.3 DRAM (h) model 29-30 2.3.4 HPM model 30 2.4 model comparison and trends 30-32 2.5 has multi-core parallel computing model 32-33 2.5.1 Multi-BSP model 32 2.5.2 mPLogP model 32 2.5.3 PEM model 32 - 33 2.6 Summary 33-35 Chapter 3 for parallel computing model is isomorphic UPMM multicore chip architectures 35-47 3.1 several commercial multicore processor architecture 35-38 3.2 UPMM multicore processor chip model 38-40 3.3 data access patterns 40-41 3.4 points layer memory access overhead analysis 41-44 3.5 matrix Operations 44-46 3.6 Summary 46-47 Chapter 4 multicore processors chip simulator 47-64 4.1 background and model design ideas 47-48 4.2 overall design 48-50 4.3 sim- outorder simulator package 50-53 4.3.1 global variable modified 51-52 4.3.2 extended instruction design 52-53 achieve 4.4 caching system 53-58 4.4.1 design ideas 53-54 4.4.2 caching system topology 54-55 4.4.3 synchronization mechanism 55-57 4.4.4 extended cache attribute achieve 57-58 4.5 system initialization module 58-59 <br / > 4.6 simulation experiments and results analysis 59-63 4.6.1 experimental parameters and process description 59 4.6.2 simulation 59-63 <br / > 4.7 Summary 63-64 Chapter 5 basic performance analysis of parallel algorithms and optimization 64-77 5.1 prefix and algorithms 64-66 <br / > 5.2 and parallel prefix algorithm 66-70 5.2.1 parallel scanning algorithm performance analysis 66-69 5.2.2 based set-associative parallel prefix and algorithms 69-70 5.3 sparse matrix - vector calculation algorithm 70-71 5.4 optimized for sparse matrix - vector calculation algorithm 71-72 5.5 experiment and the results of analysis 72-75 5.6 Summary 75-77 performance Chapter 6 FEM applications optimized 77-99 6.1 Related background 78-80 6.1.1 OpenSees About 78-79 6.1.2 FEM introduced 79-80 6.2 OpenSees finite element analysis process 80-87 6.2.1 OpenSees software architecture 80-81 6.2.2 dynamic finite element analysis process 81-83 6.2.3 for solving nonlinear equations Newton-Raphson algorithm 83-85 6.2.4 solving linear equations 85-87 6.3 OpenSeesSP performance analysis parallel 87-89 6.3.1 OpenSeesSP nonlinear equations 87-88 6.3.2 OpenSeesSP performance bottleneck analysis 88-89 6.4 UTDU matrix factorization algorithm for performance optimization 89-91 6.4.1 UTDU serial algorithm analysis 89-90 6.4.2 UTDU parallel decomposition algorithm 90 - inter- process Communication 91 6.5 performance Optimization under 91-93 6.5.1 hybrid programming mode data communications technology 91-92 6.5.2 interprocess communication optimization 92-93 6.6 solving linear / nonlinear equations performance optimization 93-94 6.7 performance Evaluation 94-98 6.8 Summary 98-99 conclusion 99-103 References published during 103-111 PhD dissertation 111-113 Thanks 113

Related dissertations

  1. Research on Dynamics and Simulation of Double Flexible Manipulators of the Space Station
    YinTao ·Harbin Institute of Technology ·2012 ·Master's thesis
  2. Design of a Miniaturized Active Endoscopic Capsule with Revolving Head Mechanism
    ShiZhiDong ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. Research on Biomechanical Properties and Endplate Cutting for Robot-assisted Artificial Cervical Disc Replacement Surgery
    ZhaoJun ·Harbin Institute of Technology ·2012 ·Master's thesis
  4. Design and Research of Hoisting Rope Wire Force Sensor
  5. Regularization Based Reconstruction Algorithms for Bioluminesccnce Tomography
  6. Parallelization of Finite Element Computing in Phase Change Memory Electric-thermal Analysis
  7. A Certain Radar Antenna Pedestal Structure Analysis and Design
  8. A Research on Stability of Wireless Sensor Network Node PCB Based on Electromagnetic Field FEM
  9. Research on Design and Analysis of Key Component in Electronic Device
  10. Design and Numerical Analysis of Tem Cell Used for IC Radiated Emission Test
    WenShuZuo ·Jimei University ·2013 ·Master's thesis
  11. Research of Fracture Properties of Artificial Heart Valves Pyrocarbon
  12. Simulation of Rat Molar Periodontal Microstructure in Orthodontic Tooth Movement
    XuYiQi ·Fourth Military Medical University ·2012 ·Doctoral dissertation
  13. Three-dimensional Bioluminescence Tomography of in Vivo Animal
  14. The Parameter Optimization and Research of Prostate Cryoablation
    WangNengFei ·Hefei University of Technology ·2013 ·Master's thesis
  15. Finite Element Study of New Individual Type of Three-dimensional Thoracolumbar-sacral Airbag Orthosis
    FanJianPing ·Second Military Medical University ·2013 ·Master's thesis
  16. Research on the Mechanical Characteristics of Extruding-Rubbing Type Corn Thresher Behavior Based on Ansys Software
    ChenXiaoHai ·Zhejiang University of Technology ·2013 ·Master's thesis
  17. Analysis of Effect of50Hz Electric Fields Generated by High Voltage Power Lines
    ChenLei ·Shanghai University of Electric Power ·2013 ·Master's thesis
  18. Characteristic Analysis and Optimization of the Intelligent Controller's Tripping Actuator
    LiYi ·Hebei University of Technology ·2012 ·Master's thesis
  19. Fuse Protection Design and Fuse Selection in High Power Converter
  20. Influence of Magnetic Shielding on Magnetic Field and Temperature Field of Large Power Transformer