-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_ncu_selected_split.sh
More file actions
executable file
·69 lines (63 loc) · 2.12 KB
/
Copy pathgenerate_ncu_selected_split.sh
File metadata and controls
executable file
·69 lines (63 loc) · 2.12 KB
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
#!/bin/bash
# Define the list of benchmark folders
# benchmark_dirs=(
# "cuda_b/bn-cuda"
# "cuda_c/chemv-cuda"
# "cuda_d/dense-embedding-cuda"
# "cuda_fg/f16max-cuda"
# "cuda_hij/jaccard-cuda"
# "cuda_m/mixbench-cuda"
# "cuda_nop/page-rank-cuda"
# "cuda_qr/qrg-cuda"
# "cuda_s/spm-cuda"
# "cuda_tz/vote-cuda"
# "cuda_a/adam-cuda"
# "cuda_s/simpleSpmv-cuda"
# )
benchmark_dirs=(
# all benchmarks in working_benchmarks_loop, working_benchmarks_atomics, working_benchmarks_pipeline, working_benchmarks_task_level
# working_benchmarks_loop
"working_benchmarks_loop/accuracy-cuda"
# "working_benchmarks_loop/bh-cuda"
"working_benchmarks_loop/bn-cuda"
"working_benchmarks_loop/chemv-cuda"
"working_benchmarks_loop/dense-embedding-cuda"
"working_benchmarks_loop/f16max-cuda"
"working_benchmarks_loop/jaccard-cuda"
"working_benchmarks_loop/matrix-rotate-cuda"
"working_benchmarks_loop/mixbench-cuda"
# "working_benchmarks_loop/page-rank-cuda"
"working_benchmarks_loop/qrg-cuda"
"working_benchmarks_loop/spm-cuda"
# "working_benchmarks_loop/vote-cuda"
# working_benchmarks_atomics
"working_benchmarks_atomics/adam-cuda"
"working_benchmarks_atomics/clenergy-cuda"
"working_benchmarks_atomics/simpleSpmv-cuda (meaningless_loop)"
# working_benchmarks_pipeline
# "working_benchmarks_pipeline/adv-cuda"
# "working_benchmarks_pipeline/fdtd3d-cuda"
# "working_benchmarks_pipeline/fhd-cuda"
# "working_benchmarks_pipeline/lda-cuda"
# "working_benchmarks_pipeline/loopback-cuda"
# working_benchmarks_task_level
# "working_benchmarks_task_level/BlackScholes"
# "working_benchmarks_task_level/STREAM_Benchmark"
# "working_benchmarks_task_level/ace-cuda"
# "working_benchmarks_task_level/adv-cuda"
# "working_benchmarks_task_level/particle-diffusion-cuda"
)
# Loop through each directory and run make run_ncu
for dir in "${benchmark_dirs[@]}"; do
echo "Entering directory: $dir"
if [ -d "$dir" ]; then
pushd "$dir" > /dev/null
echo "Running make run_ncu in $dir"
make clean
make
make run_nsys
popd > /dev/null
else
echo "Directory $dir does not exist!"
fi
done