boost MPI user-defined datatype.

Hi, all: Where can I find some boost.MPI example program about how to transfer user-defined datatype from one process to another process ? I cannot find it on boost.org and google. Any help is appreciated. thanks Jack June 22 2010 _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W...

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

thanks !!! It works ! Jack
Date: Wed, 23 Jun 2010 11:38:19 +0200 From: riccardo.murri@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost MPI user-defined datatype.
Hello Jack,
On Wed, Jun 23, 2010 at 2:08 AM, Jack Bryan
wrote: 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
_________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W...
participants (2)
-
Jack Bryan
-
Riccardo Murri