• Home
  • Raw
  • Download

Lines Matching +full:boost +full:- +full:root

1 // (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
3 // Use, modification and distribution is subject to the Boost Software
5 // http://www.boost.org/LICENSE_1_0.txt)
11 * This file reflects the Boost.MPI @c status class into
14 #include <boost/python.hpp>
15 #include <boost/mpi.hpp>
16 #include <boost/mpi/python/serialize.hpp>
18 using namespace boost::python;
19 using namespace boost::mpi;
21 namespace boost { namespace mpi { namespace python { namespace
35 boost::mpi::all_gather(comm, value, values); in all_gather()
37 boost::python::list l; in all_gather()
40 return boost::python::tuple(l); in all_gather()
52 boost::mpi::all_to_all(comm, in_values_vec, out_values_vec); in all_to_all()
54 boost::python::list l; in all_to_all()
57 return boost::python::tuple(l); in all_to_all()
60 object broadcast(const communicator& comm, object value, int root) in broadcast() argument
62 boost::mpi::broadcast(comm, value, root); in broadcast()
66 object gather(const communicator& comm, object value, int root) in gather() argument
68 if (comm.rank() == root) { in gather()
70 boost::mpi::gather(comm, value, values, root); in gather()
72 boost::python::list l; in gather()
75 return boost::python::tuple(l); in gather()
77 boost::mpi::gather(comm, value, root); in gather()
82 object reduce(const communicator& comm, object value, object op, int root) in reduce() argument
84 if (comm.rank() == root) { in reduce()
86 boost::mpi::reduce(comm, value, out_value, op, root); in reduce()
89 boost::mpi::reduce(comm, value, op, root); in reduce()
94 object scatter(const communicator& comm, object values, int root) in scatter() argument
98 if (comm.rank() == root) { in scatter()
104 boost::mpi::scatter(comm, values_vec, result, root); in scatter()
106 boost::mpi::scatter(comm, result, root); in scatter()
113 using boost::python::arg; in export_collectives()
126 (arg("comm") = communicator(), arg("value") = object(), arg("root")), in export_collectives()
129 (arg("comm") = communicator(), arg("value") = object(), arg("root")), in export_collectives()
133 arg("root")), in export_collectives()
140 (arg("comm") = communicator(), arg("values") = object(), arg("root")), in export_collectives()
144 } } } // end namespace boost::mpi::python