📄 node94.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>8 Message Passing Interface</TITLE>
</HEAD>
<BODY>
<meta name="description" value="8 Message Passing Interface">
<meta name="keywords" value="book">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><a href="msgs0.htm#2" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#2"><img ALIGN=MIDDLE src="asm_color_tiny.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/asm_color_tiny.gif" alt="[DBPP]"></a> <A NAME=tex2html3082 HREF="node93.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node93.html"><IMG ALIGN=MIDDLE ALT="previous" SRC="previous_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/previous_motif.gif"></A> <A NAME=tex2html3090 HREF="node95.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node95.html"><IMG ALIGN=MIDDLE ALT="next" SRC="next_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/next_motif.gif"></A> <A NAME=tex2html3088 HREF="node49.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node49.html"><IMG ALIGN=MIDDLE ALT="up" SRC="up_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/up_motif.gif"></A> <A NAME=tex2html3092 HREF="node1.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node1.html"><IMG ALIGN=MIDDLE ALT="contents" SRC="contents_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/contents_motif.gif"></A> <A NAME=tex2html3093 HREF="node133.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node133.html"><IMG ALIGN=MIDDLE ALT="index" SRC="index_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/index_motif.gif"></A> <a href="msgs0.htm#3" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#3"><img ALIGN=MIDDLE src="search_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/search_motif.gif" alt="[Search]"></a> <BR>
<B> Next:</B> <A NAME=tex2html3091 HREF="node95.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node95.html">8.1 The MPI Programming Model</A>
<B>Up:</B> <A NAME=tex2html3089 HREF="node49.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node49.html">Part II: Tools</A>
<B> Previous:</B> <A NAME=tex2html3083 HREF="node93.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node93.html"> Chapter Notes</A>
<BR><HR><P>
<H1><A NAME=SECTION03500000000000000000>8 Message Passing Interface</A></H1>
<P>
<A NAME=chapmpi> </A>
<P>
In the message-passing library approach to parallel programming, a
<A NAME=13808> </A>
collection of processes executes programs written in a standard
sequential language augmented with calls to a library of functions for
sending and receiving messages. In this chapter, we introduce the key
concepts of message-passing programming and show how designs developed
using the techniques discussed in Part I can be adapted for message-passing
execution. For concreteness, we base our presentation on the Message
Passing Interface (MPI), the de facto message-passing standard.
<A NAME=12183> </A>
However, the basic techniques discussed are applicable to other such
<A NAME=12184> </A>
systems, including p4, PVM,
<A NAME=12185> </A>
Express, and PARMACS.
<A NAME=12186> </A>
<P>
MPI is a complex system. In its entirety, it comprises 129 functions,
many of which have numerous parameters or variants. As our goal is to
convey the essential concepts of message-passing programming, not to
provide a comprehensive MPI reference manual, we focus here on a set
of 24 functions and ignore some of the more esoteric features. These
24 functions provide more than adequate support for a wide range of
applications.
<P>
After studying this chapter, you should understand the essential
features of the message-passing programming model and its realization
in MPI, and you should be able to write simple MPI programs. In
particular, you should understand how MPI implements local, global,
and asynchronous communications. You should also be familiar with the
mechanisms that MPI provides to support the development of modular
programs and the sequential and parallel composition of program
components.
<P>
<HR>
<UL>
<LI> <A NAME=tex2html3094 HREF="node95.html#SECTION03510000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node95.html#SECTION03510000000000000000">8.1 The MPI Programming Model</A>
<LI> <A NAME=tex2html3095 HREF="node96.html#SECTION03520000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node96.html#SECTION03520000000000000000">8.2 MPI Basics</A>
<LI> <A NAME=tex2html3096 HREF="node97.html#SECTION03530000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node97.html#SECTION03530000000000000000">8.3 Global Operations</A>
<LI> <A NAME=tex2html3097 HREF="node98.html#SECTION03540000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node98.html#SECTION03540000000000000000">8.4 Asynchronous Communication</A>
<LI> <A NAME=tex2html3098 HREF="node99.html#SECTION03550000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node99.html#SECTION03550000000000000000">8.5 Modularity</A>
<LI> <A NAME=tex2html3099 HREF="node100.html#SECTION03560000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node100.html#SECTION03560000000000000000">8.6 Other MPI Features</A>
<LI> <A NAME=tex2html3100 HREF="node101.html#SECTION03570000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node101.html#SECTION03570000000000000000">8.7 Performance Issues</A>
<LI> <A NAME=tex2html3101 HREF="node102.html#SECTION03580000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node102.html#SECTION03580000000000000000">8.8 Case Study: Earth System Model</A>
<LI> <A NAME=tex2html3102 HREF="node103.html#SECTION03590000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node103.html#SECTION03590000000000000000">8.9 Summary</A>
<LI> <A NAME=tex2html3103 HREF="node104.html#SECTION035100000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node104.html#SECTION035100000000000000000"> Exercises</A>
<LI> <A NAME=tex2html3104 HREF="node105.html#SECTION035110000000000000000" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node105.html#SECTION035110000000000000000"> Chapter Notes</A>
</UL>
<BR> <HR><a href="msgs0.htm#2" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#2"><img ALIGN=MIDDLE src="asm_color_tiny.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/asm_color_tiny.gif" alt="[DBPP]"></a> <A NAME=tex2html3082 HREF="node93.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node93.html"><IMG ALIGN=MIDDLE ALT="previous" SRC="previous_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/previous_motif.gif"></A> <A NAME=tex2html3090 HREF="node95.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node95.html"><IMG ALIGN=MIDDLE ALT="next" SRC="next_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/next_motif.gif"></A> <A NAME=tex2html3088 HREF="node49.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node49.html"><IMG ALIGN=MIDDLE ALT="up" SRC="up_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/up_motif.gif"></A> <A NAME=tex2html3092 HREF="node1.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node1.html"><IMG ALIGN=MIDDLE ALT="contents" SRC="contents_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/contents_motif.gif"></A> <A NAME=tex2html3093 HREF="node133.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node133.html"><IMG ALIGN=MIDDLE ALT="index" SRC="index_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/index_motif.gif"></A> <a href="msgs0.htm#3" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#3"><img ALIGN=MIDDLE src="search_motif.gif" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/search_motif.gif" alt="[Search]"></a> <BR>
<B> Next:</B> <A NAME=tex2html3091 HREF="node95.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node95.html">8.1 The MPI Programming Model</A>
<B>Up:</B> <A NAME=tex2html3089 HREF="node49.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node49.html">Part II: Tools</A>
<B> Previous:</B> <A NAME=tex2html3083 HREF="node93.html" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/node93.html"> Chapter Notes</A>
<BR><HR><P>
<P><ADDRESS>
<I>© Copyright 1995 by <A href="msgs0.htm#6" tppabs="http://www.dit.hcmut.edu.vn/books/system/par_anl/tppmsgs/msgs0.htm#6">Ian Foster</a></I>
</ADDRESS>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -