-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
156 lines (124 loc) · 5.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
BIN ?= ./bin
BINARIES ?= graphit_apps ${BIN}/bs ${BIN}/fft ${BIN}/spgemm ${BIN}/spgemm_cusp ${BIN}/sgemm ${BIN}/aes ${BIN}/bh ${BIN}/sw ${BIN}/dmr ${BIN}/ptr_chase ${BIN}/ptr_chase_single ${BIN}/sgemm_batch
CUDA_PATH ?= /usr/local/cuda-11/
NVCC ?= ${CUDA_PATH}/bin/nvcc
.PHONY: all clean ${BINARIES} ${BIN}/ptr_chase
all: ${BINARIES} #Jacobi HE
./${BIN}:
mkdir -p ${BIN}
graphit_apps: | ./${BIN}
cd graphit; \
mkdir build; \
cd build; \
cmake ..; \
make -j$(nproc);
cd ./graphit/graphit_eval/g2_cgo2021_eval; \
python3 gen_table7.py small; \
cp ./table7_outputs/pr ../../../${BIN}/; \
cp ./table7_outputs/ds_road ../../../${BIN}/; \
cp ./table7_outputs/ds_social ../../../${BIN}/; \
cp ./table7_outputs/bfs_social ../../../${BIN}/; \
cp ./table7_outputs/bfs_road ../../../${BIN}/;
${BIN}/bfs: | ./${BIN}
cd gunrock; \
mkdir -p build; \
cd build; \
cmake .. && $(MAKE) -j bfs; \
cp bin/bfs ../../${BIN}/
${BIN}/bfs_chai: | ./${BIN}
cd chai/CUDA-D/BFS/; \
make; \
cp bfs ../../../${BIN}/bfs_chai;
${BIN}/sssp_chai: | ./${BIN}
cd chai/CUDA-D/SSSP/; \
make; \
cp sssp ../../../${BIN}/sssp_chai;
${BIN}/sssp: | ./${BIN}
cd gunrock; \
mkdir -p build; \
cd build; \
cmake .. && $(MAKE) -j sssp;
${BIN}/pr: | ./${BIN}
cd gunrock; \
mkdir -p build; \
cd build; \
cmake .. && $(MAKE) -j pr;
${BIN}/bs: | ./${BIN}
cd BlackScholes; \
$(MAKE); \
cp BlackScholes ../${BIN}/bs
${BIN}/fft: | ./${BIN}
cd gpu-fft; \
$(MAKE) static FFT_SIZE=16384 NUM=64; \
$(MAKE) static FFT_SIZE=16384 NUM=320; \
$(MAKE) static FFT_SIZE=65536 NUM=64; \
$(MAKE) static FFT_SIZE=65536 NUM=320; \
cp fft_16384_64 ../${BIN}/fft_16384_64; \
cp fft_16384_320 ../${BIN}/fft_16384_320; \
cp fft_65536_320 ../${BIN}/fft_65536_320; \
cp fft_65536_64 ../${BIN}/fft_65536_64;
${BIN}/spgemm: ${CUDA_PATH}/include/cusp | ./${BIN}
cd SpGEMM_cuda;\
$(MAKE); \
cp spgemm ../${BIN}/spgemm
${BIN}/spgemm_cusp: ${CUDA_PATH}/include/cusp | ./${BIN}
cd cusp_SpGEMM;\
$(MAKE); \
cp SpGEMM ../${BIN}/spgemm_cusp
${BIN}/sgemm: | ./${BIN}
cd cutlass; \
${NVCC} cutlass.cu -I include/ -I tools/util/include/ -cudart=shared -lcudart; \
cp a.out ../${BIN}/sgemm;
${BIN}/sgemm_batch: | ./${BIN}
cd cutlass; \
${NVCC} batched_gemm.cu -I include/ -I tools/util/include/ -std=c++11 -cudart=shared -lcudart; \
cp a.out ../${BIN}/sgemm_batch;
${BIN}/sgemm_batched: | ./${BIN}
cd cutlass; \
${NVCC} cutlass_batch.cu -I include/ -I tools/util/include/ -cudart=shared -lcudart; \
cp a.out ../${BIN}/sgemm_batched;
${BIN}/aes: | ./${BIN}
cd gpu-app-collection/src/cuda/ispass-2009/AES/; \
make; \
cp ../../bin/linux/release/ispass-2009-AES ../../../../../${BIN}/aes
${BIN}/bh: | ./${BIN}
cd Galois/lonestar/scientific/gpu/barneshut; \
$(NVCC) bh.cu -I./../../../../libgpu/include -I./../../../../external/moderngpu/src -I./../../../../external/cub ./../../../../libgpu/src/csr_graph.cu ./../../../../libgpu/src/ggc_rt.cu -cudart shared -O3 -DNDEBUG -arch=sm_70 --expt-extended-lambda -std=c++14 -DTHRUST_IGNORE_CUB_VERSION_CHECK -D_FORCE_INLINES -lcudadevrt -lcudart -o bh; \
cp bh ../../../../../${BIN}
${BIN}/dmr: | ./${BIN}
cd Galois/lonestar/scientific/gpu/delaunayrefinement; \
$(NVCC) dmr.cu -I./../../../../libgpu/include -I./../../../../external/moderngpu/src -I./../../../../external/cub ./../../../../libgpu/src/csr_graph.cu ./../../../../libgpu/src/ggc_rt.cu -cudart shared -O3 -DNDEBUG -arch=sm_70 --expt-extended-lambda -std=c++14 -DTHRUST_IGNORE_CUB_VERSION_CHECK -D_FORCE_INLINES -lcudadevrt -lcudart -o dmr; \
cp dmr ../../../../../${BIN}
${BIN}/bfs_ls: | ./${BIN}
cd Galois/lonestar/analytics/gpu/bfs; \
$(NVCC) bfs.cu support.cu -I./../../../../libgpu/include -I./../../../../external/moderngpu/src ./../../../../libgpu/src/csr_graph.cu ./../../../../libgpu/src/skelapp/skel.cu ./../../../../libgpu/src/ggc_rt.cu -cudart shared -O3 -DNDEBUG -arch=sm_70 --expt-extended-lambda -std=c++14 -DTHRUST_IGNORE_CUB_VERSION_CHECK -D_FORCE_INLINES -lcudadevrt -lcudart -o bfs; \
cp bfs ../../../../../${BIN}/bfs_ls
${BIN}/pr_ls: | ./${BIN}
cd Galois/lonestar/analytics/gpu/pagerank; \
$(NVCC) pagerank.cu support.cu -I./../../../../libgpu/include -I./../../../../external/moderngpu/src ./../../../../libgpu/src/csr_graph.cu ./../../../../libgpu/src/skelapp/skel.cu ./../../../../libgpu/src/ggc_rt.cu -cudart shared -O3 -DNDEBUG -arch=sm_70 --expt-extended-lambda -std=c++14 -DTHRUST_IGNORE_CUB_VERSION_CHECK -D_FORCE_INLINES -lcudadevrt -lcudart -o pr; \
cp pr ../../../../../${BIN}/pr_ls
${BIN}/sw: | ./${BIN}
cd GASAL2; \
${NVCC} src/*.cpp src/*.cu test_prog/*.cpp submodules/alignment_boilerplate/src/* -I include/ -I submodules/alignment_boilerplate/include -I src/ -cudart=shared -lcudart -DN_CODE=0x4E -DMAX_QUERY_LEN=1024 -lpthread -Xcompiler -fopenmp -o program_gpu; \
cp ./program_gpu ../${BIN}/sw
./parboil/datasets:
cd parboil; \
wget http://www.phoronix-test-suite.com/benchmark-files/pb2.5datasets_standard.tgz; \
tar -xf pb2.5datasets_standard.tgz
${BIN}/stencil: ./parboil/datasets | ./${BIN}
cd parboil; \
rm ./benchmarks/stencil/build/cuda_default/*; \
./parboil compile stencil cuda
cp ./parboil/benchmarks/stencil/build/cuda_default/stencil ${BIN}/stencil
${BIN}/ptr_chase: | ./${BIN}
cd microbenchmarks; \
${NVCC} pointerchase.cu -cudart=shared -lcudart -o ptr_chase; \
cp ./ptr_chase ../${BIN}/ptr_chase
${BIN}/ptr_chase_single: | ./${BIN}
cd microbenchmarks; \
${NVCC} pointerchase_single.cu -cudart=shared -lcudart -o ptr_chase_single; \
cp ./ptr_chase_single ../${BIN}/ptr_chase_single
${CUDA_PATH}/include/cusp: cusp/
cp -r ./cusp ${CUDA_PATH}/include/
clean:
rm -r ${BIN}