Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想分配一个具有重叠元素的向量。例如,如果我有 [1,2,3],我希望 [1,2] 被发送到一个节点,而 [2,3] 被发送到另一个节点。我熟悉如何使用 MPI 来做到这一点,但我将如何使用 Boost::MPI 来做到这一点?
从未尝试过,但我认为您可以使用range 或 slices。如果 Boost 序列化中未包含您自己的序列化,您可能需要提供它。