Corresponding Receive Routine of MPI_Bcast

前端 未结 1 378
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 07:19

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,

1条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 07:39

    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.

    0 讨论(0)
提交回复
热议问题