BOOST_IS_MPI_DATATYPE macro and std::vector

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? Thanks, Sven ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

On Sep 3, 2010, at 5:29, "Prevrhal, Sven"
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
participants (2)
-
Matthias Troyer
-
Prevrhal, Sven