-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (37 loc) · 922 Bytes
/
Makefile
File metadata and controls
53 lines (37 loc) · 922 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
EXE=gpu-ibfs
COMMFLAGS=-O3 --compiler-options -Wall -Xptxas -v
CUCC= "$(shell which nvcc)"
CUFLAGS= -arch=sm_35 ${COMMFLAGS}#-Xptxas -dlcm=cg#disable l1 cache
CUFLAGS+= -ccbin=g++ -Xcompiler -fopenmp
MPC = "$(shell which mpicxx)"
MPCFLAGS = -Wall -I"$(shell dirname $(CUCC))/../include" -L"$(shell dirname $(CUCC))/../lib64" -lcudart -fopenmp
ifeq ($(enable_monitor), 1)
CUFLAGS+= -DENABLE_MONITORING
endif
ifeq ($(enable_check), 1)
CUFLAGS+= -DENABLE_CHECKING
endif
ifeq ($(enable_groupby), 1)
CUFLAGS+= -DGROUPBY
endif
OBJS= main.o \
ibfs.o \
reporter.o
DEPS= Makefile \
expander.cuh \
inspector.cuh \
comm.h \
graph.cuh \
bfs_gpu_opt.cuh \
wtime.h \
validate.h \
scan.cuh \
allocator.cuh
%.o:%.cpp $(DEPS)
${MPC} -c ${MPCFLAGS} $< -o $@
%.o:%.cu $(DEPS)
${CUCC} -c ${CUFLAGS} $< -o $@
${EXE}:${OBJS}
${MPC} ${OBJS} $(MPCFLAGS) -o ${EXE}
clean:
rm -rf *.o ${EXE}