Sharing Data

 

Broadcast

 

Write a program that reads an integer value from the terminal and distributes the value to all of the MPI processes. Each process should print out its rank and the value it received.

 

You may want to use these MPI routines in your solution:

Hint 
Complete the arguments of the MPI_Bcast in the following template: 
Processor 0 is braodcasting an integer value