Optimization of Parallel Codes on SMP Clusters
- Author
- ChenLi
- Advisor
- ZhangZhaoQing
- School
- Institute of Computing Technology
- Major
- Computer System Architecture
- Classification
- TN915.02 Communication network structure and design
- Degree
- Doctoral dissertation
- Year
- 2002
- Downloads
- 304
- Citations
- 3
- SMP Cluster
- OpenMP
- computation partitioning
- shadowed area
- Software pipelining
- parallel region
- synchronization elimination
Abstract
Clusters of Symmetric Multiprocessors have been widespread in high performance computing, the architecture have the dramatic feature of hybrid memory models: shared-memory within nodes and distributed-memory among nodes . The hybrid architecture puts forward the problem of programming model and performance. Hybrid programming model mixing MPI and threads brings out greater complexity to programmers, we believe that a unified programming model should be adopted on SMP clusters. In this paper, an extension to OpenMP is devised to match the underlying architecture, and an implementation which supports multiple level parallelism is given. In-depth research is done on issues particular to this hierarchy architecture.The main contributions of this paper are:1) Based on the notion of“Distributed OpenMP”, devise an OpenMP extension suited to the cluster architecture, several execution models are discussed, a general framework is given, fundamental strategies about how to determine multiple level parallelism is discussed.2) Data and computation partition is also important for SMP clusters, a redundant computation partitioning technique is given to optimizing inter-node communication. The technique focus on parallel loop sequences, the idea is to choose redundant computation properly for each parallel loop, in order to eliminate inter-loop communications which are usually introduced using ordinary partitioning strategy.3) A new approach based on loop fusion is presented to exploit pipelining parallelism. The technique exploits pipelining from complex loop structures, which distinguishes itself from traditional pipelining techniques.4) In a global communication optimization framework, redundant message elimination and message coalescing are realized. The Introduction of globally shadowed area greatly reduces data redistributions incurred by procedural calls. The interprocedural optimization of regular communications further eliminates redundant messages.5) The grain of“intra-node”parallelism are of importance to program performance, a construction algorithm of parallel regions is given interprocedurally.6) A new synchronization elimination technique is presented, based on static computation partitioning. Two kinds of notions are introduced to describe the relationship between references, where data dependence occurs. The notions are called strong consistent, and consistent with respect to computation partitioning, about each of which the impact to synchronization is discussed in the term of“synchronization-free offset”. An algorithm is presented to eliminate
Table of contents
Chapter Introduction 9-16
1.1 existing parallel application development methodology 9-11
1.2 hierarchy structure of the parallel programming challenge 11-14
1.2.1 multi-level parallel demand 12
1.2.2 Multi-level parallelism to achieve way 12-14
1.3 paper organization 14-16
Chapter II multi-level hierarchical model of parallel 16-30
2.1 of the OpenMP on a SMP cluster expansion and execution mode 16-20
2.1.1 the OpenMP extension of the objectives and principles 16-17
2.1.2 OpenMP extension of description 17-19
2.1.2.1 DISTRIBUTE guided 17 -18
2.1.2.2 ON HOME guided 18-19
2.1.3 possible execution mode 19-20
2.1.3.1 software-based virtual shared memory way 19-20
2.1.3.2 SMP cluster-based messaging communication 20
2.1.3.3 SMP cluster based on the unilateral communication 20 <br / > 2.2 two-tier parallel 20-24
2.2.1 nodes in parallel, to achieve 21-22
2.2.1.1 cycle Scheduling is 21 <br / 2.2.1.2 two parallel domain programming mode 21-22
2.2.2 node parallelism of two kinds: fine-grained with coarse-grained way 22-23 < br /> 2.2.3 thread-safe communication library, and the parallelism within the nodes 23-24
2.3 hierarchical model to support technology 24-27
2.3.1 speedup 24-25
2.3.2 profiling support for parallelism option 25-26
2.3.3 node parallelism initial choice of model and node parallel to determine the 26-27
240 multi-level parallel the overall framework of 27-29
2.4.1 global address space with the local address space of the consistency of treatment technology 27
2.4.2 hierarchical compilation and execution 27-29
2.4.3 achievement 29
2.5 Summary 29-30
the chapters inter-node parallelism optimization 30-48
3.1 primer 30-31
3.2 optimized communication redundant computation partition 31-40
3.2.1 without the concept of communication redundant computing division 31-32
3.2.2 relative redundant vector redundancy diagram 32-35
3.2.2.1 is relatively redundant I vector 33-34
3.2.2.2 rules dependent on the relative redundant vector of the linear superposition 34-35
3.2.2.3 redundant diagram 35
3.2.3 redundant vector calculation 35-36
3.2.4 relative redundant vector optimization 36-38
3.2.5 Redundancy calculate the segmentation optimization for communication 38-40
3.2.5.1 optimize traffic analysis 38
3.2.5.2 Test results and analysis 38-40
3.3 pipelining based on loop fusion optimization 40-46
3.3.1 segmented water cycle is 40-41
3.3.2 split cycle merger 41-42
3.3.3 split cycle alignment 42-44
3.3.4 excavations flowing is parallel 44-45
3.3.5 Test results and analysis 45-46
3.4 work 46-47
3.5 Summary 47-48
Chapter IV of communication optimization 48-61 <br / > 4.1 Communication Descriptor - ASD 48-51
4.1.1 available section description of ASD 48-49
4.1.2 ASD calculations consider the redundant computation partition 49-51
4.2 shaded area to determine 51-56
4.2.1 process within the shaded area to determine 51-53
4.2.1.1 shaded area The strategy selection shaded area within 52
4.2.1.2 process analysis 52-53
4.2.2 Global shaded area to determine 53-56 <br / > 4.3 global communication optimization 56-58
4.3.1 Global communication optimization framework 56-57
4.3.2 redundant communication, delete, and communication placed to determine the 57-58
4.3.3 news gathering 58
4.4 Interprocedural communication optimizations 58-59
4.5 work 59-60
4.6 Summary 60-61
parallelism optimization in the fifth chapter points 61-90
5.1 parallel domain merger 61-66 < br /> 5.1.1 parallel domain both the mode of generating 61-62
5.1.2 parallel domain scoping of variables to determine 62-63
5.1.2.1 process combination of variable scoping is to determine 62-63
5.1.2.2 variable scoping process 63
5.1.3 parallel domain construct 63 -65
5.1.4 the process of the Regional Inter-merger 65-66
5.2 synchronization point optimization 66-68
5.2.1 Simultaneous Optimization of the significance of 66-67
5.2.2 simultaneous optimization based on the data flow of the scalar and array dependence analysis 67-68
5.3 cycle inter-dependent, with no synchronization offset 68-76 < br /> 5.3.1 synchronization offset 68-69
5.3.2 on the calculation of partition to the strong separation point of reference, and their synchronization offset 69-72
5.3.3 on the calculation of partition coefficient consistent point of reference, and its properties 72-75
5.3.4 to calculate the partition mapping the separation point of reference, its synchronization offset 75 -76
5.4 based on the static division of the synchronization to eliminate 76-84
5.4.1 contradictions is the dependencies and redundant computing division 76-78
5.4.2 the spread of the offset vector 78-79
5.4.3 calculate the partition offset Figure 79-81
5.4.3.1 similar point of reference for the merger 79-80
5.4.3.2 calculate the partition offset Figure 80-81
5.4.4 synchronization elimination algorithm 81-84
5.4.4.1 simultaneous optimization of the order 81-82
5.4.4.2 synchronization elimination algorithm 82-84
5.5 between the synchronization to eliminate 84-88
5.5.1 process analysis techniques Select 84-85
5.5.1.1 The commonly used process analysis technology 84-85
5.5.1.2 process synchronization optimized processing 85
5.5.2 subroutine abstract data flow - calculation of the extended partition offset Figure 85-86
5.5.3 call spread, integrated 86-88
5.6 work 88
5.7 Summary 88-90
Chapter VI system to achieve results 90-96
6.1 system soft- hardware environment 90-91
6.2 prototype system structure 91-93
the 6.2.1 Autopar statically compiled processes 91-92
6.2. runtime enhancements 92-93
6.3 Autopar3.0 in the test results on Dawning 3000 93-96
6.3.1 Test Case Description 93 < br /> 6.3.2 test results 93-96
Chapter VII summarizes and further work 96-98
7.1 This work is a summary of 96
7.2 further work 96-98
References 98-104
thank 104-105
of resume 105
Related dissertations
- Parallel triangular meshes shortest path algorithm and implementation
- Parallel Hybrid PVS Algorithm Based on OpenMP and its Application
- Study of Multicore-based Parallel Algorithm for Constructing Extremal Graphs
- The Research of Shared CMP Cache Management
- Parallelizing Research and Implementation of Speech Recognition
- 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
- Research and Application of Image Processing in Parallel Programming Method
- Research on OMP-based Compressed Sensing Algorithm
- Research and application of image restoration algorithm of diffuse multi-core architecture system based on
- Parallelization of a Fabric Defect Segmentation Method Using OpenMP
- Research on Optimization of Parallel Programs for Embedded Multicore System
- Research on Stream Program Compilation and Optimization for Tiled Multi-core Processor
- Research on Stream Programming Framework and Language for Multi-core Processor Base on X10
- Parallel Programming and Optimization Based on Multi-core Processors
- Design and Implementation of a MD5Parallel Crack Algorithm Based on CUDA
- Research on the Parallel Algorithms of0-1Knapsack Problem Based on Divide and Conquer