开发者

How can I do an overlapping scatter using Boost.MPI?

开发者 https://www.devze.com 2022-12-24 19:17 出处:网络
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 h

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消