Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Corresponding Receive Routine of MPI_Bcast

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

like image 932
SRec0 Avatar asked Mar 02 '10 22:03

SRec0


1 Answers

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.

like image 180
hbar Avatar answered Sep 24 '22 14:09

hbar