Boost logo

Boost Users :

Subject: Re: [Boost-users] Performance optimization in Boost using std::vector<>
From: saloo (salmanarshad9_at_[hidden])
Date: 2015-02-11 10:56:47

My code looks similar to example below but i send really big vectors.

#include <boost/mpi.hpp>
#include <iostream>
#include <boost/serialization/vector.hpp>
namespace mpi = boost::mpi;

int main()
  mpi::environment env;
  mpi::communicator world;
std::vector<int> my_vector;

if (world.rank() == 0) {
    world.send(1, 0, my_vector);
} else {
    world.recv(0, 0, my_vector);
  return 0;

View this message in context:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at