#include #include #include #include using namespace std; using namespace boost; int main(int argc, char** argv) { mpi::environment env(argc, argv); mpi::communicator comm; map data; data[0] = 1; cout << comm.rank() << ": broadcasting data" << endl; mpi::broadcast(comm, data, 0); cout << comm.rank() << ": done!" << endl; }