Advertisement
Guest User

Untitled

a guest
Apr 7th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <mpi.h>
  4. #include <math.h>
  5. #include <sys/types.h>
  6. #include <stdint.h>
  7. #include <inttypes.h>
  8.  
  9. /************************************************************
  10. This is a simple hello world program. Each processor prints out
  11. it's rank and the size of the current MPI run (Total number of
  12. processors).
  13. ************************************************************/
  14.  
  15. int main(argc,argv)
  16. int argc;
  17. char *argv[];
  18. {
  19. int myid, numprocs;
  20. int i;
  21.  
  22. MPI_Init(&argc,&argv);
  23. MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
  24. MPI_Comm_rank(MPI_COMM_WORLD,&myid);
  25.  
  26.  
  27. uint64_t t;
  28. printf("id: %d\n", ((struct ompi_datatype_t *)MPI_DOUBLE) -> id);
  29. printf("test: %d\n", MPI_DOUBLE);
  30.  
  31. MPI_Finalize();
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement