I want to distribute a vector with overlapping elements. For example, if I had [1,2,3], I'd want [1,2] to开发者_开发知识库 get sent to one node, and [2,3] to get sent to another. I'm familiar with how to do this using MPI, but how would I do this using Boost::MPI?
Never tried, but I think you can use ranges or slices. You may need to provide your own serialization if it's not included in Boost Serialization.
精彩评论