Hi!
When benchmarking the performance of sending a std::vector<double> with Boost.MPI, I noticed that you can gain several factors of speedup if you replace
std::vector<double> data(n);
comm.send(0,0,data);
by e.g.
std::vector<double> data(n);
comm.send(0,0, boost::mpi::skeleton(data));
comm.send(0,0, boost::mpi::get_content(data));
The code to benchmark, the measured data as well as a plot thereof are attached. Further parameters were:
MPI implementation: Open MPI 1.6.5
C++ compiler: gcc 4.8.2
Compiler flags: -O3 -std=c++11
mpirun parameter: --bind-to-core
CPU model: AMD Opteron(tm) Processor 6174
Why is it/what am I doing wrong that the default sending of std::vector<double> performs so badly?
Best regards,
Simon Etter
_______________________________________________
Boost-mpi mailing list
Boost-mpi@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-mpi