Hello world

This commit is contained in:
Nihonium 2024-02-19 13:33:50 +03:00
commit d82d9189fb
Signed by: nihonium
GPG key ID: 0251623741027CFC
5 changed files with 10 additions and 0 deletions

BIN
sem1/hello Executable file

Binary file not shown.

10
sem1/hello.c Normal file
View file

@ -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();
}

Binary file not shown.

Binary file not shown.