Corresponding Receive Routine of MPI_Bcast

烂漫一生 提交于 2020-01-10 13:32:29

问题


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?

Thank you.

Regards

SRec


回答1:


MPI_Bcast is both the sender and the receiver call.

Consider the prototype for it.

int MPI_Bcast ( void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm )

All machines except for the machine with id = root are receivers. The machine that has the id = root is the sender.



来源:https://stackoverflow.com/questions/2367300/corresponding-receive-routine-of-mpi-bcast

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!