From b75e6eb1f690cce6c41433c7515f3a3dafa2def0 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Mon, 6 Apr 2020 15:25:58 +0100 Subject: [PATCH] Use mpicc to compile, better than CC for MPI applications --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 500e52e..75a2e49 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,9 @@ CFLAGS = -g -O0 -Wall - all: swiftmpistepsim swiftmpistepsim: swiftmpistepsim.c mpiuse.c mpiuse.h atomic.h cycle.h clocks.h clocks.c - $(CC) $(CFLAGS) -o swiftmpistepsim swiftmpistepsim.c mpiuse.c clocks.c -I/usr/include/mpi -lmpi -lpthread + mpicc $(CFLAGS) -o swiftmpistepsim swiftmpistepsim.c mpiuse.c clocks.c clean: - rm swiftmpistepsim + rm -f swiftmpistepsim -- GitLab