forked from USArmyResearchLab/mpi-epiphany
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (20 loc) · 715 Bytes
/
Makefile
File metadata and controls
34 lines (20 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile for compiling the MPI 2D FFT code for Epiphany
DEFS = -DEDIM=4 -DNSIZE=128 -DMSIZE=7 -DMPI_BUF_SIZE=512 -DLOOP=1
CCFLAGS += -O2 $(DEFS)
INCS = -I. -I/usr/local/browndeer/include -I/usr/local/browndeer/include/coprthr
LIBS = -L/usr/local/browndeer/lib -lcoprthr -lcoprthrcc -lm
TARGET = main.x mpi_tfunc.cbin.3.e32
all: $(TARGET)
.PHONY: clean install uninstall $(SUBDIRS)
.SUFFIXES:
.SUFFIXES: .c .o .x .cbin.3.e32
.c.cbin.3.e32:
clcc --coprthr-cc -mtarget=e32 -D__link_mpi__ --dump-bin -I ./ $(DEFS) -DCOPRTHR_MPI_COMPAT $<
chmod a+r $@
main.x: main.o
$(CC) -o main.x main.o $(LIBS)
.c.o:
$(CC) $(CCFLAGS) $(INCS) -c $<
clean: $(SUBDIRS)
rm -f *.o *.x *.cbin.3.e32
distclean: clean