Implementation and Optimization of OpenMP Task Scheduling Strategies
- Author
- SongKeQing
- Advisor
- HuangChun
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP301.6 Algorithm Theory
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 98
- Citations
- 3
Abstract
The OpenMP has been the standard of parallel programming on the share memory. With the development of multi-core, more and more applications make use of OpenMP to explore their parallel computation. In order to develop the irregular parallel program, the OpenMP3.0 propose the task, which is used to specify independent units of work, support recursive parallelization, and the creation of dynamic tasks, to address the landscape. By now the main compilers vendors and organization of compilers implement the task scheduling strategies in their own ways.GCC, as widely used open source compiler, has developed an implementation of OpenMP 3.0 API primarily. However, it only just completes a simple FIFO scheduler for the TASK, which is responsible for its ineffective performance. The paper analyses the task scheduling strategies and its implementation we know, and complete the breadth-first and work-first on GCC, and propose mix task scheduling strategies.The main work we done as follows:1. Analyzing the task scheduling strategies, especially analyze the task scheduling strategies implemented by GCC and its implementation in detail. For task scheduling just only implement with FIFO, we explore the breadth-first and work-first task scheduling strategies on GCC to deal with low worse performance by GCC task scheduling strategy. By the test of FFT, the result show the performance of application has been improved 1.06%.2. There is a problem, when a task encounter a taskwait, the thread will suspend itself to wait in the original of implementation of task scheduling of GCC, to solve the problem, we modify the communication mechanism between the task and its children, which make the task can schedule another ready task to run when it is waiting its children to be completed, helping to improve the performance of the parallel application.3. To solve the problem of the thread gets the worse performance of work in breadth-first schedulers and the thread may get to starve in work-first schedulers, we propose the mix task scheduling strategy. Making use of the breadth-first scheduling to create more tasks to keep the thread busy and the depth-first to get better performance work to keep the thread effective ,which is helpful to improve the performance of the application.4. With the mechanism of task, we develop some typical irregular parallel applications, such as FFT, to test the task scheduling strategies which are implemented by the paper. The result shows that the implementation of the task scheduling in the paper can schedule the task well, and improve the performance of the applications. Compared to the GCC’s, get a average 1.1% speedup.
Table of contents
Abstract 9-10
ABSTRACT 10-11
Chapter Introduction 11-25
1.1 topics background 11-14 < br /> 1.1.1 multicore technology development 11
1.1.2 OpenMP2.5 specification shortcomings 11-13
1.1.3 TASK put forward 13 - 14
1.2 research 14-22
1.2.1 Intel TBB 14-18
1.2.2 IBM XL C / C compiler 18 -20
1.2.3 NANOS group 20-21
1.2.4 Cilk engineering 21
1.2.5 OpenUH compiler 21-22 < br /> 1.2.6 GCC4.5 compiler 22
1.3 content of this paper and the main work 22-23
1.4 this structure 23-25 ??<br / > tasks in Chapter OpenMP3.0 mechanisms and implementation in GCC 25-33
2.1 OpenMP3.0 task in mechanism 25-28
2.1.1 Overview 25
2.1.2 task 25-28
2.2 GCC4.5 in tASK realization 28-32
2.2.1 TASK data structures 28-29
2.2.2 task creation 29-31
2.2.3 task Synchronization 31
2.2.4 GCC to achieve the task priority disadvantages 31-32
2.3 Chapter Summary 32-33
Chapter TASK scheduling policy implementation on the GCC 33-43
3.1 width priority scheduling policy implementation 33-39
3.1.1 breadth-first scheduling policies 33-34
3.1.2 data structure design 34-36
3.1.3 pruning strategy 36
3.1.4 task Creation 36-38
3.1.5 task Scheduler 38-39
3.2 work priority scheduling policy implementation 39-41
3.2.1 working priority scheduling policies 39-40
3.2.2 data Structures 40
3.2.3 tasks Create 40-41
3.3 breadth-first scheduling policy and priority scheduling policies work relatively 41-42
3.4 Summary 42-43
first chapters scheduling algorithm optimization and hybrid scheduling strategy 43-48
4.1 GCC4.5 in TASK optimized 43-45
4.1.1 problems and solutions 43-44
4.1.2 GCC optimization to achieve 44-45
4.2 hybrid scheduling strategy 45-47
4.2.1 data structure design 46
4.2.2 hybrid scheduling strategy 46-47
4.2.3 task Scheduler 47
4.3 chapter Summary 47-48 <br / > CHAPTER testing and analysis 48-56
5.1 test 48-51
5.1.1 Barcelona OpenMP task test set 48
5.1.2 FFT 48-51
5.2 test environment 51
5.3 test results and Analysis 51-55
5.4 Summary 55-56
Chapter VI Conclusion 56-58
6.1 work Summary 56
6.2 Prospects 56-58
Thanks 58-59
References 59-62
authors read during the academic achievements 62
Related dissertations
- Parallel Hybrid PVS Algorithm Based on OpenMP and its Application
- Design and Implementation of Emergency Command and Control System
- Study of Multicore-based Parallel Algorithm for Constructing Extremal Graphs
- The Research of Shared CMP Cache Management
- Parallelizing Research and Implementation of Speech Recognition
- Analysis about Some Task of Participating Parties in Important Period of Strategic Opportunities
- An Empirical Research on Incidental Vocabulary Learning in Light of Involvement Load Hypothesis
- Designing Task-based Activities to Improve Students' Writing Ability in Senior Middle School
- Application of Task-based Language Teaching Approach in Senior Middle School English Reading Classroom
- The Research on the Application of the Task-based-teaching Approach on English Writing in High Schools
- A Case Study of the Application of Task-based Approach in English Listening Teaching in Senior High School
- A Study on the Application of Task-based Approach to English Listening Teaching in Middle Schools
- Study on the application of task based teaching approach in interpreting teaching for English Majors in Sichuan Province, a school in Chengdu City as an example
- A Study of the Application of the Task-based Reading Strategy in Middle School English Class
- Project Implementation Study on Steel Structure Plant Construction of Dong-Yuan Project in SSE Company
- Research on Application of Parallel Computing to Marine Water Age Spectrum Simulation
- The Hybrid MPI+OpenMP Parallel Method of GRAPES-global Model
- Fast Belief Propagation-based Arallel Topic Modeling Techniques
- Multi-Core Programming for Dynamic Follow-Tree Index of Full Text Search Research
- Research and Implementation of Facial Image Fatigue Detection System Based on Gabor