Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost MPI Serialization : Sending serialized array of user defined classes
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-06-04 17:18:21


On 3 Jun 2010, at 21:59, Noman Javed wrote:

> Matthias Troyer <troyer <at> phys.ethz.ch> writes:
>
>> To just make it work, all you have to do is write serialize functions for your Array class and your complex struct.
>>
> Is it some specialized serialize function for array class or its the same as we
> normally write for boost serialization?

It uses the serialization library, and hence you don't need to do more than you normally do for serialization.

>
>> 2.) to make array serialization of built in types and some of your own structs efficient you need to use array
>> wrappers when you serialize your Array class.
>>
>> 3.) consider using the skeleton&contents mechanism if you need to send your array often and only the
>> contents but not the size of the array change
>>
> Can you give me some pointer about skeleton&contents mechanism and array wrappers

http://www.boost.org/doc/libs/1_43_0/libs/serialization/doc/wrappers.html
http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/tutorial.html#mpi.skeleton_and_content

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