My first MPI code

main
Fabio Durastante 7 months ago
parent cd58934e16
commit c049fb3ec1

@ -0,0 +1,7 @@
MPICC = mpicc #The wrapper for the compiler
CFLAGS += -g #Useful for debug symbols
all: helloworld
helloworld: helloworld.c
$(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
clean:
rm -f helloworld

@ -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;
}
Loading…
Cancel
Save