|
Boost Users : |
Subject: Re: [Boost-users] mpi/serialization: broadcast function and the value argument
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-12-14 12:56:48
On 14 Dec 2010, at 01:00, Hicham Mouline wrote:
>
> -----Original Message-----
> From: "Matthias Troyer" [troyer_at_[hidden]]
> Date: 13/12/2010 09:57 PM
> To: "Hicham Mouline"
> CC: boost-users_at_[hidden]
> Subject: Re: [Boost-users] mpi/serialization: broadcast function and the value argument
>
>
>>> mpi::broadcast() appears to be incapable of sending the argument "value" in a polymorphic way, ie:
>>>
>>> sender-------------------
>>> Base* base;
>>> If I call boost::mpi::broadcast(..., base, ...)
>>>
>>>
>>> receiver-----------------
>>> Base* base;
>>> boost::mpi::broadcast(..., base, ...)
>>> This does not construct the most derived type of base on the heap and make base point there, as serialization would do.
>
>> Did you register the most derived type?
> Yes I have all types.
>
>> Did you test whether pointer deserialization works with other serialization archives?
>> Matthias
>
> I will test.
This will be crucial. If it does not work with, e.g. text or binary archives then it will not work with serialization either.
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