Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.MPI] question about serializing custom object
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-08-26 16:34:21


On 26 Aug 2010, at 20:40, Cristobal Navarro wrote:

>
>
> Actually the answer is yes. This is exactly what is done by Boost.MPI!
>
> When you send an object using Boost.MPI, it is serialized into an MPI buffer by the packed_oarchive. Then that buffer's content is sent via MPI and it is unpacked at the other end. All this is transparently done by the send and recv calls of Boost.MPI.
>
> Matthias, so is possible to create this packed_oarchive for sender process, and packed_oarchive for receiver process and use plain MPI instructions MPI_send MPI_recv.

Yes, that can be done. However you may consider just using Boost.MPI right away since that is all that is done: pack the archive and send it.

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