|
Boost Users : |
Subject: Re: [Boost-users] BOOST_IS_MPI_DATATYPE macro and std::vector
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-09-03 02:09:27
On Sep 3, 2010, at 5:29, "Prevrhal, Sven" <Sven.Prevrhal_at_[hidden]> wrote:
> I have a class whose data I want to send/recv and which are of type std::vector. However, once itâs allocated the size of this vector is fixed during runtime. Can I use BOOST_IS_MPI_DATATYPE to speed up data transfer and how would I do it
>
Hi Sven
This is exactly the usage scenario for the skeleton&contents mechanism. Once the vector is allocated you can just send the "content", which is a custom MPI datatype for the data in the vector.
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