
23 Jun
2010
23 Jun
'10
9:38 a.m.
Hello Jack,
On Wed, Jun 23, 2010 at 2:08 AM, Jack Bryan
Where can I find some boost.MPI example program about how to transfer user-defined datatype from one process to another process ?
Boost.MPI uses Boost.Serialization to transfer C++ class instances; it handles the lower-level details of user-defined MPI datatypes for you. So, you should just provide serialization support for all your objects, and then you can just send/recv them directly. I attach a very simple example, using a class to send the usual "hello from rank XX" message. Cheers, Riccardo