-
Notifications
You must be signed in to change notification settings - Fork 0
/
bench.sh
executable file
·114 lines (57 loc) · 2.2 KB
/
bench.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
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
#!/bin/sh
run_wind() {
export NPROCS=1
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=100" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r1=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=1000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r2=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=10000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r3=$(cat /tmp/bench-output)
export NPROCS=2
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=100" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r4=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=1000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r5=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=10000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r6=$(cat /tmp/bench-output)
export NPROCS=4
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=100" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r7=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=1000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r8=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=10000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r9=$(cat /tmp/bench-output)
export NPROCS=8
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=100" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r10=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=1000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r11=$(cat /tmp/bench-output)
make -s clean
make -s CXXFLAGS="-DBENCH -DITERATIONS=10000" run
mpirun -np $NPROCS --oversubscribe $1 &> /tmp/bench-output
r12=$(cat /tmp/bench-output)
./graph.py 100 1000 10000 $r1 $r2 $r3 $r4 $r5 $r6 $r7 $r8 $r9 $r10 $r11 $r12
}
run_wind apsd