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) {
    my_vector.push_back(17);
    my_vector.push_back(38);
    world.send(1, 0, my_vector);
} else {
    world.recv(0, 0, my_vector);
}
  return 0;
}

--
View this message in context: http://boost.2283326.n4.nabble.com/Performance-optimization-in-Boost-using-std-vector-tp4672196p4672202.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net