SHARE
TWEET

Untitled

a guest Apr 21st, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <mpi.h>
  3.  
  4. int main(char argc, char **argv)
  5. {
  6.     int my_rank;
  7.     int p;
  8.     MPI_Init(&argc, &argv);
  9.     MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
  10.     MPI_Comm_size(MPI_COMM_WORLD, &p);
  11.     printf("Proces %d z %d \n", my_rank, p);
  12.     MPI_Finalize();
  13.     return 0;
  14. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top