• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Type level</title>
6<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../../../mpi/reference.html#header.boost.mpi.environment_hpp" title="Header &lt;boost/mpi/environment.hpp&gt;">
10<link rel="prev" href="../packed.html" title="Struct packed">
11<link rel="next" href="operat_1_3_27_7_10_2_1_2_2.html" title="Function operator&lt;&lt;">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
16<td align="center"><a href="../../../../../index.html">Home</a></td>
17<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<a accesskey="p" href="../packed.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../mpi/reference.html#header.boost.mpi.environment_hpp"><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="operat_1_3_27_7_10_2_1_2_2.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="refentry">
27<a name="boost.mpi.threading.level"></a><div class="titlepage"></div>
28<div class="refnamediv">
29<h2><span class="refentrytitle">Type level</span></h2>
30<p>boost::mpi::threading::level — specify the supported threading level. </p>
31</div>
32<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../mpi/reference.html#header.boost.mpi.environment_hpp" title="Header &lt;boost/mpi/environment.hpp&gt;">boost/mpi/environment.hpp</a>&gt;
34
35</span>
36<span class="keyword">enum</span> <span class="identifier">level</span> <span class="special">{</span> <a class="link" href="level.html#boost.mpi.threading.level.single">single</a> = = MPI_THREAD_SINGLE, <a class="link" href="level.html#boost.mpi.threading.level.funneled">funneled</a> = = MPI_THREAD_FUNNELED,
37             <a class="link" href="level.html#boost.mpi.threading.level.serialized">serialized</a> = = MPI_THREAD_SERIALIZED,
38             <a class="link" href="level.html#boost.mpi.threading.level.multiple">multiple</a> = = MPI_THREAD_MULTIPLE <span class="special">}</span><span class="special">;</span></pre></div>
39<div class="refsect1">
40<a name="id-1.3.27.7.11.4.4"></a><h2>Description</h2>
41<p>Based on MPI 2 standard/8.7.3 </p>
42<div class="variablelist"><dl class="variablelist compact">
43<dt><span class="term"><code class="computeroutput">single</code><a name="boost.mpi.threading.level.single"></a></span></dt>
44<dd><p>Only one thread will execute. </p></dd>
45<dt><span class="term"><code class="computeroutput">funneled</code><a name="boost.mpi.threading.level.funneled"></a></span></dt>
46<dd>
47<p>Only main thread will do MPI calls.</p>
48<p>The process may be multi-threaded, but only the main thread will make MPI calls (all MPI calls are `<span style="color: red">&lt;lsquo&gt;&lt;/lsquo&gt;</span>funneled<span style="color: red">&lt;rsquo&gt;&lt;/rsquo&gt;</span>' to the main thread). </p>
49</dd>
50<dt><span class="term"><code class="computeroutput">serialized</code><a name="boost.mpi.threading.level.serialized"></a></span></dt>
51<dd>
52<p>Only one thread at the time do MPI calls.</p>
53<p>The process may be multi-threaded, and multiple threads may make MPI calls, but only one at a time: MPI calls are not made concurrently from two distinct threads (all MPI calls are `<span style="color: red">&lt;lsquo&gt;&lt;/lsquo&gt;</span>serialized<span style="color: red">&lt;rsquo&gt;&lt;/rsquo&gt;</span>'). </p>
54</dd>
55<dt><span class="term"><code class="computeroutput">multiple</code><a name="boost.mpi.threading.level.multiple"></a></span></dt>
56<dd>
57<p>Multiple thread may do MPI calls.</p>
58<p>Multiple threads may call MPI, with no restrictions. </p>
59</dd>
60</dl></div>
61</div>
62</div>
63<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
64<td align="left"></td>
65<td align="right"><div class="copyright-footer">Copyright © 2005-2007 Douglas Gregor,
66      Matthias Troyer, Trustees of Indiana University<p>
67        Distributed under the Boost Software License, Version 1.0. (See accompanying
68        file LICENSE_1_0.txt or copy at &lt;ulink url="http://www.boost.org/LICENSE_1_0.txt"&gt;
69        http://www.boost.org/LICENSE_1_0.txt &lt;/ulink&gt;)
70      </p>
71</div></td>
72</tr></table>
73<hr>
74<div class="spirit-nav">
75<a accesskey="p" href="../packed.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../mpi/reference.html#header.boost.mpi.environment_hpp"><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="operat_1_3_27_7_10_2_1_2_2.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
76</div>
77</body>
78</html>
79