| 1 | #include <iostream>
|
|---|
| 2 | #include <boost/mpi.hpp>
|
|---|
| 3 | #include <boost/serialization/utility.hpp>
|
|---|
| 4 | #include <vector>
|
|---|
| 5 |
|
|---|
| 6 | using namespace std;
|
|---|
| 7 | using namespace boost;
|
|---|
| 8 | using namespace mpi;
|
|---|
| 9 |
|
|---|
| 10 | int 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 | }
|
|---|