Hailiang Zhang
Hailiang Zhang

Reputation: 18890

difference between MPI_BCAST and MPI_SEND

I know MPI_SEND will be halted until MPI_RECV is executed in the target node. What about MPI_Bcast? Does it need to wait until all other nodes receive it?

Upvotes: 0

Views: 2874

Answers (1)

janneb
janneb

Reputation: 37208

MPI_Bcast is a collective operation, so all ranks in the communicator must call it. When it returns successfully, it is guaranteed that the data transfer has completed.

Upvotes: 4

Related Questions