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.
广播例程 MPI_Bcast 的相应 MPI 接收例程是什么。
即,一个处理器向一个组广播消息,假设全世界,我怎么能在这些进程中拥有消息?
谢谢你。
问候
SRec
MPI_Bcast 既是发送者又是接收者调用。
考虑它的原型。
int MPI_Bcast ( void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm )
除了 id = root 的机器之外的所有机器都是接收者。具有 id = root 的机器是发送者。