Ticket #2586: test_all_gather.cpp

File test_all_gather.cpp, 491 bytes (added by anonymous, 14 years ago)
Line 
1#include <iostream>
2#include <boost/mpi.hpp>
3#include <boost/serialization/utility.hpp>
4#include <vector>
5
6using namespace std;
7using namespace boost;
8using namespace mpi;
9
10int main(int argc,char *argv[]) {
11
12 environment env(argc, argv);
13 communicator world;
14
15 pair<size_t,size_t> p(1,2);
16
17 vector< pair<size_t,size_t> > vp;
18
19 all_gather(world,p,vp); // On valgrind, and run with at least 2 processes, generates a "still reachable: 116 bytes in 3 blocks."
20
21 return EXIT_SUCCESS;
22}