SHARE
TWEET

Untitled

Bernard0x01 Apr 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. //// bad
  3. int number;
  4. if (world_rank == 0) {
  5.     number = -1;
  6.     MPI_Bcast(&number, 1, MPI_INT, 0, MPI_COMM_WORLD);
  7. } else {
  8.     MPI_Recv(&number, 1, MPI_INT, 0, 0, MPI_COMM_WORLD,MPI_STATUS_IGNORE);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top