Performance Analysis of OpenMP Parallel Programs

Author
YinShunChang
Advisor
ZhaoKeJia
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2006
Downloads
730
Citations
14

Request the full text

Abstract

With the development of large scale parallel computing technology in recent years, especially with the continuously development of multi-core technology, the multithreaded programming technology has become more and more popular. OpenMP is the de facto standard in the field of programming on shared memory architecture. Developing parallel program with OpenMP faces some performance problems, such as load imbalance and low memory access efficiency, etc. Some performance analysis tools have been developed to find and locate such performance problems. But they suffer from no cross-platform capability, due to their dependency on operation system or hardware platform. A new light-weight performance analysis tool with cross-platform capability is designed and implemented in this thesis.An overhead analysis model on OpenMP programming is introduced first. And the performance analysis unit is presented, which is used to analyze load balancing. The OpenMP program performance problems based on specification language of performance property is also precisely defined. The implementation details of performance analysis tool are presented in the last of this thesis. The source-level instrumentation is used in this tool to analyze various performance problems defined in the OpenMP program. And the hardware information during program execution is recorded in account registers, a group of special flag registers in processor. The account registers record the execution context, which can be used to analyze some performance characters such as cache missing rate. The analysis tool accesses the account registers by PAPI. The analysis tool can also report the load balancing degree of performance analysis unit and detect the performance degradation in a semi-automation way. This tool, implemented in standard modular using ANSI C, shows its advantages in cross-platform capability and good scalability.The performance analysis tool is verified by using standard benchmark. The performance log of analysis tool can not only locate the performance problems in source code, but also demonstrate the reason of performance problems.

Table of contents

Abstract 9-10 ABSTRACT 10-11 first chapter 11-18 1.1 research background 11-13 1.1.1 parallel computing status quo 11 1.1.2 parallel program design model and the OpenMP standard 11-13 1.1.3 research significance 13 1.2 Project Research 13-15 1.3 subject source 15-16 1.4 subject objectives 16 1.5 papers focus and difficulty 16 1.6 of this paper research results and innovative 16 1.7 paper structure 16-18 OpenMP programming model and overhead analysis 18-38 2.1 OpenMP programming model 18-21 2.1.1 OpenMP introduced 18-19 2.1.2 OpenMP guidance command flow diagram 19-20 2.1.3 OpenMP program development in the form of 20-21 2.2 overhead analysis model 21-23 2.3 overhead classification 23-25 2.4 Performance Analysis Unit, and performance degradation 25-31 2.4.1 Performance Analysis Unit 25-29 2.4.2 performance degradation 29-31 2.5 OpenMP guidance command overhead measurement 31-33 2.6 OpenMP program fragment instantiation overhead and scheduling behavior analysis 33-37 2.7 Summary 37-38 Chapter III performance analysis tool is designed to achieve 38-61 3.1 performance analysis tool framework 38-39 3.2 source code instrumentation pile 39-41 3.3 performance issues 41-49 3.3.1 performance attributes 41-42 3.3.2 related performance data structures 42-46 3.3.3 performance attributes that define the performance issues 46-49 3.4 during the execution of hardware information for 49-52 3.4.1 access to the hierarchical model 49-50 3.4.2 PAPI structure 50-51 3.4.3 OpenMP Programs hardware access to information 51-52 3.5 performance analysis tools 52-60 3.5.1 the OpenMP performance problem identification and positioning 52 3.5.2 load balancing measurement and optimization strategies 52-56 3.5.3 Hardware Information Acquisition 56-59 3.5.4 performance degradation detection 59-60 3.6 Summary 60-61 Chapter testing and optimization 61-73 4.1 test 61-67 4.1.1 Quicksort test 61-62 4.1.2 the importance of test of the reasonable use of CACHE 62-63 4.1.3 BT test 63 4.1.4 SP test 63-65 4.1.5 Performance Analysis unit test 65-67 4.2 optimized 67-72 4.2.1 optimization guidelines 67-68 4.2.2 practical guidance 68-69 4.2.3 for the optimization of CACHE 69-72 4.3 Summary 72-73 Chapter V Conclusion 73-75 5.1 summarize 73-74 5.2 Next work 74-75 thank 75-76 published papers during the study for master 76-77 Master to participate during the project 77-78 References 78-80

Related dissertations

  1. Parallel Hybrid PVS Algorithm Based on OpenMP and its Application
    ZouJing ·Hunan University ·2012 ·Master's thesis
  2. Study of Multicore-based Parallel Algorithm for Constructing Extremal Graphs
    ZhengRuiJun ·Beijing Jiaotong University ·2014 ·Master's thesis
  3. The Research of Shared CMP Cache Management
    XuZuo ·Hunan University ·2013 ·Master's thesis
  4. Parallelizing Research and Implementation of Speech Recognition
    SongGuangJie ·Northeastern University ·2010 ·Master's thesis
  5. Research on Application of Parallel Computing to Marine Water Age Spectrum Simulation
    ZhouWei ·Hebei University of Engineering ·2013 ·Master's thesis
  6. The Hybrid MPI+OpenMP Parallel Method of GRAPES-global Model
  7. Fast Belief Propagation-based Arallel Topic Modeling Techniques
    GuYiQing ·Suzhou University ·2012 ·Master's thesis
  8. Multi-Core Programming for Dynamic Follow-Tree Index of Full Text Search Research
    ZhangXiang ·Guangxi University ·2013 ·Master's thesis
  9. Research and Implementation of Facial Image Fatigue Detection System Based on Gabor
    ChenJun ·Hunan University ·2012 ·Master's thesis
  10. Research and Application of Image Processing in Parallel Programming Method
  11. Research on OMP-based Compressed Sensing Algorithm
    WuXiaoZuo ·Hainan University ·2013 ·Master's thesis
  12. Research and application of image restoration algorithm of diffuse multi-core architecture system based on
    WangZuo ·Yunnan University ·2013 ·Master's thesis
  13. Parallelization of a Fabric Defect Segmentation Method Using OpenMP
    MaJinChao ·Xi'an University of Engineering ·2012 ·Master's thesis
  14. Research on Optimization of Parallel Programs for Embedded Multicore System
    WangQing ·Harbin Institute of Technology ·2013 ·Doctoral dissertation
  15. Parallel Programming and Optimization Based on Multi-core Processors
    Wang ·Nanjing University ·2012 ·Master's thesis
  16. Research on the Parallel Algorithms of0-1Knapsack Problem Based on Divide and Conquer
    LiLingXiao ·Hunan University ·2011 ·Master's thesis
  17. Shuffled Flog Leaping Algorithm for RNA Secondary Structure Prediction and Its Parallelization
  18. Interpolation of Climatic Resources in Multi-core Research on Parallel Computing Environment
    ChenHuan ·Hunan University ·2012 ·Master's thesis
  19. Design and Optimization of Hash Algorithms Based on Multi-core CPUs
  20. Research of Parallel Statistical Cost Flow Phase Unwrapping Algorithm Based on Network Flow Model
    ChenGuoDong ·Chengdu University of Technology ·2012 ·Master's thesis