forked from iHeartGraph/Enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 635 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 635 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
EXE=enterprise.bin
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
ifeq ($(enable_monitor), 1)
CUFLAGS+= -DENABLE_MONITORING
endif
ifeq ($(enable_check), 1)
CUFLAGS+= -DENABLE_CHECKING
endif
OBJS= main.o
DEPS= Makefile \
expander.cuh \
inspector.cuh \
comm.h \
bfs_gpu_opt.cuh \
wtime.h \
write_result.cuh \
scan.cuh \
allocator.cuh
%.o:%.cu $(DEPS)
${CUCC} -c ${CUFLAGS} $< -o $@
${EXE}:${OBJS}
${CUCC} ${OBJS} $(CUFLAGS) -o ${EXE}
clean:
rm -rf *.o ${EXE}