-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_pcie.sh
84 lines (71 loc) · 2 KB
/
run_pcie.sh
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
#!/bin/bash
tx=$1
benchmarks=("2dconv" "alexnet" "bfs" "bicg" "bptree" "doitgen" "fdtd" "fw" "gemm" "gramschmit" "hellinger-cuda" "mm" "mvt" "xsbench")
footprints=(8192 3500 2610 4096 5120 8192 6912 4096 6912 3072 6912 5760 4096 3884)
pwd0=$(pwd) # the root folder of the artifact
echo ${pwd0}
echo ""
cd ${pwd0}
echo ${pwd0}
oversub=(0)
oversub=(50)
for ((idx=0; idx<${#benchmarks[@]}; ++idx)); do
benchmark=${benchmarks[idx]}
footprint=${footprints[idx]}
echo "Processing $benchmark $footprint"
for os in ${oversub[@]}; do
cd ${pwd0}
bash driver_change.sh 0 64k 256
cd eval
cd $benchmark
echo $(pwd)
echo "running"
ls -ltr uvm.${os}.${tx}.out
./uvm.${os}.${tx}.out &> uvm.${os}.${tx}.txt
sleep 3
cd ${pwd0}
bash driver_change.sh 0 64k 256
cd eval
cd $benchmark
echo $(pwd)
echo "running"
ls -ltr suv.${os}.${tx}.out
./suv.${os}.${tx}.out &> suv.${os}.${tx}.txt
sleep 3
cd ${pwd0}
bash driver_change.sh 1 64k 256
cd eval
cd $benchmark
ls -ltr uvm.${os}.${tx}.out
./uvm.${os}.${tx}.out &> ac.${os}.${tx}.txt
sleep 3
cd ${pwd0}
echo ""
done
done
cd ${pwd0}
echo ""
oversub=(50)
bash driver_change.sh 0 64k 256
benchmarks=("2dconv" "alexnet" "bicg" "doitgen" "fdtd" "fw" "gemm" "gramschmit" "hellinger-cuda" "mm" "mvt")
footprints=(8192 3500 4096 8192 6912 4096 6912 3072 6912 5760 4096)
for ((idx=0; idx<${#benchmarks[@]}; ++idx)); do
benchmark=${benchmarks[idx]}
footprint=${footprints[idx]}
echo "Processing $benchmark $footprint"
for os in ${oversub[@]}; do
cd ${pwd0}
bash driver_change.sh 0 64k 256
cd eval
cd $benchmark
echo $(pwd)
echo "running"
ls -ltr sc.${os}.${tx}.out
./sc.${os}.${tx}.out &> sc.${os}.${tx}.txt
sleep 3
cd ${pwd0}
echo ""
done
done
cd ${pwd0}
echo ""