$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Boost.MPI] SendingReceiving an array "view"
From: John Phillips (phillips_at_[hidden])
Date: 2009-04-29 17:47:13
Joel Falcou wrote:
> I have a small class view<T> that containes a T* and a size. When I 
> send/receive view using Boost.MPI, I want transfert the actual n data 
> pointed by the view pointer and send the size. On receiving, i will 
> receive the size, checks if they are compatible and receive the data 
> into the zone pointed by the pointer of the receiving view. Of course, I 
> may do something more complex than send/Receive, like all_2_all etc. So 
> i was thinking to give view<T> a proper serialize function so 
> boost.serialization may kick in. As the behavior of sending and 
> receiving is different, I use the load/save idiom to separate the 
> behavior. The question is then, how to serialize the n elements poitned 
> by a raw pointer to those data in an efficient way ?
> 
> Regards
   Do you have any constraints on what the underlying type for the 
elements will be?
                        John