Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <mpi.h>
- #include <math.h>
- #include <sys/types.h>
- #include <stdint.h>
- #include <inttypes.h>
- /************************************************************
- This is a simple hello world program. Each processor prints out
- it's rank and the size of the current MPI run (Total number of
- processors).
- ************************************************************/
- int main(argc,argv)
- int argc;
- char *argv[];
- {
- int myid, numprocs;
- FILE *f1;
- int i;
- MPI_Init(&argc,&argv);
- MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
- MPI_Comm_rank(MPI_COMM_WORLD,&myid);
- printf("test: %d\n", MPI_DOUBLE);
- printf("test2: %d\n", sizeof(MPI_DOUBLE));
- MPI_Finalize();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement