$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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