Lines Matching +full:boost +full:- +full:root
3 // Use, modification and distribution is subject to the Boost Software
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Message Passing Interface 1.1 -- Section 4.4. Broadcast
9 #include <boost/mpi/config.hpp>
10 #include <boost/mpi/collectives/broadcast.hpp>
11 #include <boost/mpi/skeleton_and_content.hpp>
12 #include <boost/mpi/detail/point_to_point.hpp>
13 #include <boost/mpi/environment.hpp>
16 namespace boost { namespace mpi { namespace
22 int root) in broadcast() argument
24 // Only the root can broadcast the packed_oarchive in broadcast()
25 assert(comm.rank() == root); in broadcast()
34 std::vector<request> requests(size-1); in broadcast()
37 if (dest != root) { in broadcast()
47 int root) in broadcast() argument
49 broadcast(comm, const_cast<const packed_oarchive&>(oa), root); in broadcast()
55 int root) in broadcast() argument
63 // Receive data from the root. in broadcast()
64 if (comm.rank() != root) { in broadcast()
66 detail::packed_archive_recv(comm, root, tag, ia, status); in broadcast()
69 std::vector<request> requests(size-1); in broadcast()
72 if (dest != root) { in broadcast()
84 int root) in broadcast() argument
86 broadcast(comm, oa.get_skeleton(), root); in broadcast()
92 packed_skeleton_oarchive& oa, int root) in broadcast() argument
94 broadcast(comm, oa.get_skeleton(), root); in broadcast()
100 packed_skeleton_iarchive& ia, int root) in broadcast() argument
102 broadcast(comm, ia.get_skeleton(), root); in broadcast()
106 void broadcast<content>(const communicator& comm, content& c, int root) in broadcast() argument
108 broadcast(comm, const_cast<const content&>(c), root); in broadcast()
113 int root) in broadcast() argument
118 root, comm)); in broadcast()
125 if (comm.rank() == root) { in broadcast()
127 if (p != root) { in broadcast()
136 root, environment::collectives_tag(), in broadcast()
142 } } // end namespace boost::mpi