-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
54 lines (46 loc) · 1.46 KB
/
Makefile
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
54
EXE=tc
CUFLAGS= -O3 -Wall -lpthread -fopenmp
#CUFLAGS+=-O3 --compiler-options -Wall -Xptxas -v -lpthread
#CUCC= "$(shell which nvcc)"
CUCC= g++
#CUFLAGS= -arch=sm_35 ${COMMFLAGS}#-Xptxas -dlcm=cg#disable l1 cache
#CUFLAGS+= -ccbin=g++ -Xcompiler -fopenmp
#CUFLAGS+= -O0 -G -g -lpthread
ifeq ($(enable_monitor), 1)
# CUFLAGS+= -DENABLE_MONITORING
endif
ifeq ($(enable_check), 1)
# CUFLAGS+= -DENABLE_CHECKING
endif
OBJS= main.o graph.o sort.o
DEPS= Makefile \
graph.cpp\
sort.cpp\
main.cpp \
# scan.cu\
# expander.cuh \
kernel.cu\
inspector.cuh \
graph.cuh \
bfs_gpu_opt.cuh \
wtime.h \
validate.h \
scan.cuh \
allocator.cuh
%.o:%.cpp $(DEPS)
${CUCC} -c ${CUFLAGS} $< -o $@
${EXE}:${OBJS}
${CUCC} ${OBJS} $(CUFLAGS) -o ${EXE}
clean:
rm -rf *.o ${EXE}
test:
./tc ~/rmat_21_128.dat.json.sorted &>>log/log
nvprof --metrics warp_execution_efficiency ./tc ~/rmat_21_128.dat.json.sorted &>>log/log1
nvprof --metrics gld_transactions_per_request ./tc ~/rmat_21_128.dat.json.sorted &>>log/log2
nvprof --metrics global_cache_replay_overhead ./tc ~/rmat_21_128.dat.json.sorted &>>log/log3
nvprof --metrics shared_replay_overhead ./tc ~/rmat_21_128.dat.json.sorted &>>log/log4
nvprof --metrics shared_load_transactions ./tc ~/rmat_21_128.dat.json.sorted &>>log/log5
test1:
nvprof --metrics l1_cache_global_hit_rate ./tc ~/rmat_21_128.dat.json.sorted &>>log/log6
test2:
nvprof --metrics l1_cache_local_hit_rate ./tc ~/rmat_21_128.dat.json.sorted &>>log/log6