MPI_Bcast的相应接收例程 [英] Corresponding Receive Routine of MPI_Bcast
本文介绍了MPI_Bcast的相应接收例程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
广播例程MPI_Bcast对应的MPI接收例程是什么.
What would be the corresponding MPI receive routine of the broadcast routine, MPI_Bcast.
就是说,一个处理器向一组广播消息,比方说全世界,在这些过程中如何获得消息?
Namely, one processor broadcasts a message to a group, let's say all world, how I can have the message in these processes?
谢谢.
致谢
SRec
推荐答案
MPI_Bcast既是发送方也是接收方.
MPI_Bcast is both the sender and the receiver call.
考虑它的原型.
int MPI_Bcast ( void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm )
除id = root的机器以外的所有机器都是接收者.具有id = root的机器是发件人.
All machines except for the machine with id = root are receivers. The machine that has the id = root is the sender.
这篇关于MPI_Bcast的相应接收例程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文