diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3856935 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +MPICC = mpicc +CFLAGS += -g +all: example +example: example.c + $(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@ +clean: + rm -f example diff --git a/example.c b/example.c new file mode 100644 index 0000000..de91384 --- /dev/null +++ b/example.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; +}