Boost.MPI: What's received isn't what was sent!
问题 I am relatively new to using Boost MPI. I have got the libraries installed, the code compiles, but I am getting a very odd error - some integer data received by the slave nodes is not what was sent by the master. What is going on? I am using boost version 1.42.0, compiling the code using mpic++ (which wraps g++ on one cluster and icpc on the other). A reduced example follows, including the output. Code: #include <iostream> #include <boost/mpi.hpp> using namespace std; namespace mpi = boost: