MPI_BCAST


MPI_BCAST broadcasts a message from the process with rank root to all processes of the group, itself included. Every process gets a copy of count elements of datatype which they put in a local buffer starting at address buffer. MPIBCAST+ must be called by all processes in the communicator using the same arguements for comm, root.

MPI_BCAST( buffer, count, datatype, root, comm ) 
[ INOUT buffer] starting address of buffer (choice) 
[ IN count] number of entries in buffer (integer) 
[ IN datatype] data type of buffer (handle) 
[ IN root] rank of broadcast root (integer) 
[ IN comm] communicator (handle) 

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