My first MPI code

This commit is contained in:
Vanessa Vichi
2024-04-17 17:28:13 +02:00
parent 95e6376036
commit ff4397cc05
2 changed files with 17 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
MPICC = mpicc
CFLAGS += -g
all: example
example: example.c
$(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
clean:
rm -f example
+10
View File
@@ -0,0 +1,10 @@
#include"mpi.h"
#include<stdio.h>
int main(int argc,
char **argv){
MPI_Init( &argc, &argv);
printf("Hello world\n");
MPI_Finalize();
return 0;
}