Skip to content
Snippets Groups Projects
Commit b75e6eb1 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Use mpicc to compile, better than CC for MPI applications

parent 33317da6
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment