A Study of MPI Parallel Programming with Software Patterns Based on Object Technology
- Author
- HouZuo
- Advisor
- LinHePing
- School
- Northeast Normal University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 159
- Citations
- 1
- Message Passing Interface (MPI)
- Parallel Programming
- Parallel computing
- software patterns
- Design Patterns
- Object-Oriented
Abstract
The technology of modern computer has stimulated the rapid growth of the computational science. In practice, the limit of speed and technology has embarrassed the PC to be used widely and the single processor can not meet the demand of computation in many challenge tasks any more. So parallel computing becomes a hotspot. One of the key to perform the parallel computing is to design effective parallel programs. While, parallel programming must face the more complex condition than serial programming. Such as task assigning, communication and synchronization between processes. As one of the most important tool of design parallel program, MPI is the same. So parallel programming with MPI is very difficult, including design, debugging, migrating and maintenance. To improve the methods of parallel programming, the software patterns based on object technology, which is prevailed in software engineering is introduced into MPI parallel programming in this research. Software patterns enhance the virtues of object-oriented technology and offers parallel programming a powerful intelligence tools. In the research of this paper, parallel programming technology of MPI is studied and some typical difficulty and characteristic is abstracted from it. And for these intrinsic difficulty and characteristic, this paper provides the solution of software patterns based on object t echnology. I n which, i nclude e ncapsulating n on-object-oriented i nterface i n M PI with object technology, implementing SPMD & MPMD model with strategy pattern and handling the interactive problem in parallel programming with MVC pattern, etc. At last, the statistic data collected from the practical experiment testify the feasibility and e fficiency o f t he r esolution using software p atterns b ased o n o bject t echnology i n parallel programming. By the way, the experiment in this research is run on the PC cluster platform which is constructed independently. Its theory and practice is instructive to perform researches on larger scale or complex cluster systems.
Table of contents
Abstract 3-4
Abstract 4-5
directory 5-7
Introduction 7-8
first Chapter Introduction 8-10
1.1 research background and significance 8-9
1.2 the main contents 9-10
Chapter parallel computers and Parallel programming Overview 10-15
2.1 parallel computer 10-11
2.1.1 classification of parallel computers 10-11
2.1. 2 parallel computer architecture 11
2.1.3 PC cluster system 11
2.2 parallel Programming 11-13
2.2.1 parallel Programming model 11-12
2.2.2 parallel programming language 12-13
2.3 parallel program performance evaluation Introduction 13-15
Chapter the basic MPI parallel programming 15-29
3.1 MPI Profile 15-17
3.1.1 MPI meaning 15
3.1.2 MPI generation 15-16
3.1.3 MPI advantage 16-17
3.1.4 MPI language bindings 17
3.1.5 At present, several MPI implementations 17
3.2 MPI interface most commonly used subset 17-21
3.2.1 MPI call instructions 17-18 < br /> 3.2.2 MPI initialization and end 18-19
3.2.3 Get the current process ID 19
3.2.4 for communication domain process number 19
3.2.5 send and receive messages 19-21
3.3 MPI predefined data types 21
3.4 MPI messages in the composition 21-22
3.5 MPI in communication 22-26
3.5.1 communication domain 22
3.5.2 MPI of four communication modes 22-23
3.5.3 blocking and non-blocking communication 23-24
3.5.4 group Communication 24-26
3.6 MPI basic program design problem 26-29
3.6.1 MPI programming basic frame structure 26-27
3.6.2 to avoid deadlock 27-28
3.6.3 MPI two basic programming models 28-29
CHAPTER software model theory 29-36
4.1 software model theory outlined 29 - 31
4.1.1 software model theory of the origin and development 29
4.1.2 mode Definition 29-30
4.1.3 mode description 30-31
4.1.4 mode role 31
4.2 software patterns associated with several concepts 31-33
4.2.1 oriented software model object 31-32
4.2.2 software model and data structures and algorithms 32-33
4.2.3 software models and libraries 33
4.2.4 software model and software framework 33
4.3 mode classification 33-34
4.4 model the relationship between 34-35
4.5 based object technology software model for parallel programming sense 35-36
Chapter MPI parallel programming models in software solutions 36-53
5.1 Overview 36
5.2 with the Wrapper Facade pattern on the MPI interface encapsulation and integration 36-42
5.3 MPI environment initialization and end - Singleton mode application 42-44 < br /> 5.4 applications Strategy pattern implementation SPMD and MPMD programming model 44-47
5.5 introduces thread - for synchronization pattern 47-48
5.6 GUI-based parallel program solutions - MVC pattern 48-51
5.7 MPI programming model for the basic forms of change and its further application 51-53
Chapter VI parallel computing environment for the establishment and application examples 53-58
6.1 parallel computing environment for the establishment 53-54
6.1.1 system Structure determination 53
6.1.2 MPI program execution 53-54
6.2 Plouffe_Bellard algorithm using arbitrary precision π value 54-56
6.3 parallel generation of the Mandelbrot set 56-58 <br / > Conclusion 58-59
References 59-61
Postscript 61-62
in school papers and books published during the case 62
Related dissertations
- Research and Implementation of Key Technologies in3D Virtual Clothing Animation
- Research on Parallelization of Scientific Computing Kernels on Multi-core Platform
- Research on Software Control System of All-position Autonomous Welding Robot with Obstacle-Passing Capability
- Modeling Methods for Distributed Learning System
- The Research on Field Information Collection System Based on Palm-Sized PC
- EasyPAB: supporting the development of parallel applications for platforms
- Loan Default Prediction Based on Imbalanced Data Classification
- Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
- The Design and Implementation of Website Construction Based on OpenCms Technology
- A Study of GPU-based Parallel Learning to Rank
- Research on System Stability for Haptic Rendering
- Research on Key Technology of Modeling and Rendering for Virtual Natural Scene
- Study on Distributed Large-scale Microscopic Traffic Simulation
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Boundary Face Method Base on GPU-acceleration
- Parallelization Research of Face Recognition and Texture Synthesis Algorithm Base on MATLAB Multi-core Clusters
- Research of Image Registration and Mosaic Technology Based on GPU
- Model Optimization Technique Based on Viewpoint-dependent and Application
- Research on Detection and Recognition of Traffic Objects in City Environments
- The Research of Multi-face Recognition Algorithm for Intelligent Video Surveillance