More than a week old news but didn't see anyone commenting on that:
http://www.generic-programming.org/~dgregor/boost.mpi/libs/parallel/doc/html/
The page says it was tested with LAM, Open and MPICH but the
functionality is still limited.
I liked *very* much the way they transformed MPI into plain C++ code.
Look at this code:
int main(int argc, char* argv[])
{
mpi::environment env(argc, argv);
mpi::communicator world;
if (world.rank() == 0) {
world.send(1, 0, std::string("Hello"));
std::string msg;
world.recv(1, 1, msg);
std::cout << msg << "!" << std::endl;
} else {
std::string msg;
world.recv(0, 0, msg);
std::cout << msg << ", ";
std::cout.flush();
world.send(0, 1, std::string("world"));
}
return 0;
}
cheers,
--renato
|