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)
8 #include <boost/mpi/collectives/gather.hpp>
9 #include <boost/mpi/collectives/gatherv.hpp>
10 #include <boost/mpi/communicator.hpp>
11 #include <boost/mpi/environment.hpp>
13 #include <boost/serialization/string.hpp>
14 #include <boost/serialization/list.hpp>
15 #include <boost/iterator/counting_iterator.hpp>
16 #include <boost/lexical_cast.hpp>
19 #include <boost/test/included/unit_test.hpp>
21 using boost::mpi::communicator;
26 const char* kind, int root = -1) in gather_test() argument
31 if (root == -1) { in gather_test()
32 for (root = 0; root < comm.size(); ++root) in gather_test()
33 gather_test(comm, generator, kind, root); in gather_test()
35 using boost::mpi::gather; in gather_test()
38 if (comm.rank() == root) { in gather_test()
39 std::cout << "Gathering " << kind << " from root " in gather_test()
40 << root << "..." << std::endl; in gather_test()
43 gather(comm, value, values, root); in gather_test()
45 if (comm.rank() == root) { in gather_test()
62 const char* kind, int root = -1) in gatherv_test() argument
66 if (root == -1) { in gatherv_test()
67 for (root = 0; root < comm.size(); ++root) in gatherv_test()
68 gatherv_test(comm, generator, kind, root); in gatherv_test()
70 using boost::mpi::gatherv; in gatherv_test()
78 if (comm.rank() == root) { in gatherv_test()
84 std::cout << "Gatheringv " << kind << " from root " in gatherv_test()
85 << root << "..." << std::endl; in gatherv_test()
87 gatherv(comm, myvalues, &values[0], sizes, root); in gatherv_test()
96 gatherv(comm, myvalues, root); in gatherv_test()
129 std::string result = boost::lexical_cast<std::string>(p); in operator ()()
144 std::string value = boost::lexical_cast<std::string>(i); in operator ()()
153 boost::mpi::environment env; in BOOST_AUTO_TEST_CASE()