3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Chapter 20. Boost.MPI</title>
5 <link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="libraries.html" title="Part I. The Boost C++ Libraries (BoostBook Subset)">
9 <link rel="prev" href="boost/forward.html" title="Function template forward">
10 <link rel="next" href="mpi/getting_started.html" title="Getting started">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td>
15 <td align="center"><a href="../../index.html">Home</a></td>
16 <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="boost/forward.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><img src="../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="mpi/getting_started.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div>
27 <div><h2 class="title">
28 <a name="mpi"></a>Chapter 20. Boost.MPI</h2></div>
29 <div><div class="author"><h3 class="author">
30 <span class="firstname">Douglas</span> <span class="surname">Gregor</span>
32 <div><div class="author"><h3 class="author">
33 <span class="firstname">Matthias</span> <span class="surname">Troyer</span>
35 <div><p class="copyright">Copyright © 2005-2007 Douglas Gregor,
36 Matthias Troyer, Trustees of Indiana University</p></div>
37 <div><div class="legalnotice">
38 <a name="mpi.legal"></a><p>
39 Distributed under the Boost Software License, Version 1.0. (See accompanying
40 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">
41 http://www.boost.org/LICENSE_1_0.txt </a>)
46 <p><b>Table of Contents</b></p>
48 <dt><span class="section"><a href="mpi.html#mpi.intro">Introduction</a></span></dt>
49 <dt><span class="section"><a href="mpi/getting_started.html">Getting started</a></span></dt>
51 <dt><span class="section"><a href="mpi/getting_started.html#mpi.mpi_impl">MPI Implementation</a></span></dt>
52 <dt><span class="section"><a href="mpi/getting_started.html#mpi.config">Configure and Build</a></span></dt>
53 <dt><span class="section"><a href="mpi/getting_started.html#mpi.installation">Installing and Using Boost.MPI</a></span></dt>
54 <dt><span class="section"><a href="mpi/getting_started.html#mpi.testing">Testing Boost.MPI</a></span></dt>
56 <dt><span class="section"><a href="mpi/tutorial.html">Tutorial</a></span></dt>
58 <dt><span class="section"><a href="mpi/tutorial.html#mpi.point_to_point">Point-to-Point communication</a></span></dt>
59 <dt><span class="section"><a href="mpi/tutorial.html#mpi.collectives">Collective operations</a></span></dt>
60 <dt><span class="section"><a href="mpi/tutorial.html#mpi.communicators">Managing communicators</a></span></dt>
61 <dt><span class="section"><a href="mpi/tutorial.html#mpi.skeleton_and_content">Separating structure from content</a></span></dt>
62 <dt><span class="section"><a href="mpi/tutorial.html#mpi.performance_optimizations">Performance optimizations</a></span></dt>
63 <dt><span class="section"><a href="mpi/tutorial.html#mpi.c_mapping">Mapping from C MPI to Boost.MPI</a></span></dt>
65 <dt><span class="section"><a href="mpi/reference.html">Reference</a></span></dt>
67 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi_hpp">Header <boost/mpi.hpp></a></span></dt>
68 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.allocator_hpp">Header <boost/mpi/allocator.hpp></a></span></dt>
69 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.collectives_hpp">Header <boost/mpi/collectives.hpp></a></span></dt>
70 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.collectives_fwd_hpp">Header <boost/mpi/collectives_fwd.hpp></a></span></dt>
71 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.communicator_hpp">Header <boost/mpi/communicator.hpp></a></span></dt>
72 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.config_hpp">Header <boost/mpi/config.hpp></a></span></dt>
73 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.datatype_hpp">Header <boost/mpi/datatype.hpp></a></span></dt>
74 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.datatype_fwd_hpp">Header <boost/mpi/datatype_fwd.hpp></a></span></dt>
75 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.environment_hpp">Header <boost/mpi/environment.hpp></a></span></dt>
76 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.exception_hpp">Header <boost/mpi/exception.hpp></a></span></dt>
77 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.graph_communicator_hpp">Header <boost/mpi/graph_communicator.hpp></a></span></dt>
78 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.group_hpp">Header <boost/mpi/group.hpp></a></span></dt>
79 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.inplace_hpp">Header <boost/mpi/inplace.hpp></a></span></dt>
80 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.intercommunicator_hpp">Header <boost/mpi/intercommunicator.hpp></a></span></dt>
81 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.nonblocking_hpp">Header <boost/mpi/nonblocking.hpp></a></span></dt>
82 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.operations_hpp">Header <boost/mpi/operations.hpp></a></span></dt>
83 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.packed_iarchive_hpp">Header <boost/mpi/packed_iarchive.hpp></a></span></dt>
84 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.packed_oarchive_hpp">Header <boost/mpi/packed_oarchive.hpp></a></span></dt>
85 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.python_hpp">Header <boost/mpi/python.hpp></a></span></dt>
86 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.request_hpp">Header <boost/mpi/request.hpp></a></span></dt>
87 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.skeleton_and_content_hpp">Header <boost/mpi/skeleton_and_content.hpp></a></span></dt>
88 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.skeleton_and_content_fwd_hpp">Header <boost/mpi/skeleton_and_content_fwd.hpp></a></span></dt>
89 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.status_hpp">Header <boost/mpi/status.hpp></a></span></dt>
90 <dt><span class="section"><a href="mpi/reference.html#header.boost.mpi.timer_hpp">Header <boost/mpi/timer.hpp></a></span></dt>
92 <dt><span class="section"><a href="mpi/python.html">Python Bindings</a></span></dt>
94 <dt><span class="section"><a href="mpi/python.html#mpi.python_quickstart">Quickstart</a></span></dt>
95 <dt><span class="section"><a href="mpi/python.html#mpi.python_user_data">Transmitting User-Defined Data</a></span></dt>
96 <dt><span class="section"><a href="mpi/python.html#mpi.python_collectives">Collectives</a></span></dt>
97 <dt><span class="section"><a href="mpi/python.html#mpi.python_skeleton_content">Skeleton/Content Mechanism</a></span></dt>
98 <dt><span class="section"><a href="mpi/python.html#mpi.design">Design Philosophy</a></span></dt>
99 <dt><span class="section"><a href="mpi/python.html#mpi.threading">Threads</a></span></dt>
100 <dt><span class="section"><a href="mpi/python.html#mpi.performance">Performance Evaluation</a></span></dt>
101 <dt><span class="section"><a href="mpi/python.html#mpi.history">Revision History</a></span></dt>
102 <dt><span class="section"><a href="mpi/python.html#mpi.acknowledge">Acknowledgments</a></span></dt>
106 <div class="section">
107 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
108 <a name="mpi.intro"></a>Introduction</h2></div></div></div>
110 Boost.MPI is a library for message passing in high-performance parallel applications.
111 A Boost.MPI program is one or more processes that can communicate either via
112 sending and receiving individual messages (point-to-point communication) or
113 by coordinating as a group (collective communication). Unlike communication
114 in threaded environments or using a shared-memory library, Boost.MPI processes
115 can be spread across many different machines, possibly with different operating
116 systems and underlying architectures.
119 Boost.MPI is not a completely new parallel programming library. Rather, it
120 is a C++-friendly interface to the standard Message Passing Interface (<a href="http://www-unix.mcs.anl.gov/mpi/" target="_top">MPI</a>), the most popular library
121 interface for high-performance, distributed computing. MPI defines a library
122 interface, available from C, Fortran, and C++, for which there are many <a href="http://www-unix.mcs.anl.gov/mpi/implementations.html" target="_top">MPI implementations</a>.
123 Although there exist C++ bindings for MPI, they offer little functionality
124 over the C bindings. The Boost.MPI library provides an alternative C++ interface
125 to MPI that better supports modern C++ development styles, including complete
126 support for user-defined data types and C++ Standard Library types, arbitrary
127 function objects for collective algorithms, and the use of modern C++ library
128 techniques to maintain maximal efficiency.
131 At present, Boost.MPI supports the majority of functionality in MPI 1.1. The
132 thin abstractions in Boost.MPI allow one to easily combine it with calls to
133 the underlying C MPI library. Boost.MPI currently supports:
135 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
136 <li class="listitem">
137 Communicators: Boost.MPI supports the creation, destruction, cloning, and
138 splitting of MPI communicators, along with manipulation of process groups.
140 <li class="listitem">
141 Point-to-point communication: Boost.MPI supports point-to-point communication
142 of primitive and user-defined data types with send and receive operations,
143 with blocking and non-blocking interfaces.
145 <li class="listitem">
146 Collective communication: Boost.MPI supports collective operations such
147 as <code class="computeroutput"><a class="link" href="boost/mpi/reduce.html" title="Function reduce">reduce</a></code>
148 and <code class="computeroutput"><a class="link" href="boost/mpi/gather.html" title="Function gather">gather</a></code>
149 with both built-in and user-defined data types and function objects.
151 <li class="listitem">
152 MPI Datatypes: Boost.MPI can build MPI data types for user-defined types
153 using the <a href="http://www.boost.org/libs/serialization/doc" target="_top">Boost.Serialization</a>
156 <li class="listitem">
157 Separating structure from content: Boost.MPI can transfer the shape (or
158 "skeleton") of complexc data structures (lists, maps, etc.) and
159 then separately transfer their content. This facility optimizes for cases
160 where the data within a large, static data structure needs to be transmitted
165 Boost.MPI can be accessed either through its native C++ bindings, or through
166 its alternative, <a class="link" href="mpi/python.html" title="Python Bindings">Python interface</a>.
170 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
171 <td align="left"><p><small>Last revised: October 30, 2014 at 10:20:19 GMT</small></p></td>
172 <td align="right"><div class="copyright-footer"></div></td>
175 <div class="spirit-nav">
176 <a accesskey="p" href="boost/forward.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><img src="../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="mpi/getting_started.html"><img src="../../doc/src/images/next.png" alt="Next"></a>