Boost logo

Boost Users :

Subject: [Boost-users] [Boost.MPI] SendingReceiving an array "view"
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-04-29 06:04:10


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


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