Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.MPI] question about serializingcustomobject
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-08-27 05:19:44


On Aug 27, 2010, at 8:25 AM, Robert Ramey wrote:

> Cristobal Navarro wrote:
> > hello Robert,
> >
> >
> > now that serialization is working, i would like to try what you
> > suggested on the first messages, mixing plain MPI with serialization
> > is not that bad,
> >
> >
> > if its possible could you guide me a little more hints on the
> > streambuf structure.
> > at the moment what i can do is save objects into binary_oarchive and
> > read them with a binary_iarchive.
> >
> >
> > what i dont know is where to put the binary_oarchive so it gets
> > transfered through MPI send as bytes. that would be the only step
> > remaining right?
> > best regards
> > Cristobal
> You should first investigate Matthias suggestion. This will be equivalent or better than my suggestion and it's already done and ready go to.

Use a packed_iarchive and a packed_oarchive and then look at the functions in point_to_point.cpp for instructions on how to send the buffer. Or, even ssimpler, just use send and recv of Boost.MPI since that does exactly what you want to do.

Matthias


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net