Hello world

master
Nihonium 10 months ago
commit d82d9189fb
Signed by: nihonium
GPG Key ID: 0251623741027CFC

Binary file not shown.

@ -0,0 +1,10 @@
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[]){
int commsize, my_rank;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD, &commsize);
MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
printf ("Communicator size= %d My rank= %d\n", commsize,my_rank);
MPI_Finalize();
}
Loading…
Cancel
Save