$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost MPI user-defined datatype.
From: Riccardo Murri (riccardo.murri_at_[hidden])
Date: 2010-06-23 05:38:19
Hello Jack,
On Wed, Jun 23, 2010 at 2:08 AM, Jack Bryan <dtustudy68_at_[hidden]> 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