diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2b69e95 --- /dev/null +++ b/Makefile @@ -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 diff --git a/helloworld.c b/helloworld.c new file mode 100644 index 0000000..dc7fdcd --- /dev/null +++ b/helloworld.c @@ -0,0 +1,10 @@ +#include"mpi.h" +#include + +int main(int argc, +char **argv){ + MPI_Init( &argc, &argv); + printf("Hello, world!\n"); + MPI_Finalize(); + return 0; +}