-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_benchmarks_genn.sh
57 lines (53 loc) · 1.64 KB
/
run_benchmarks_genn.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
#!/bin/bash -e
if [ "$3" == "test" ]; then
SCALING="1 8"
RUNTIME=1
N_REPEATS=1
else
RUNTIME=10
N_REPEATS=3
if [ "$1" = "COBAHH.py" ]; then
SCALING="0.05 0.1 0.25 0.5 1 2 4 8 16 32"
if [ "$3" == "short" ]; then
SCALING_BIG="64 128"
else
SCALING_BIG="64 128 256 512"
fi
else
SCALING="0.05 0.1 0.25 0.5 1 2 4 8 16 32 64 128 256 512 1024"
if [ "$3" == "short" ]; then
SCALING_BIG="2048 4096"
else
SCALING_BIG="2048 4096 8192"
fi
fi
fi
MONITORS="false"
kernel_timing=false
for monitor in $MONITORS; do
for para in pre post; do
for scaling in $SCALING; do
for float_dtype in float32 float64; do
for repeat in $(seq $N_REPEATS); do
echo Repeat $repeat: python $1 $scaling genn 0 $RUNTIME $monitor $float_dtype $2 $para $kernel_timing
python $1 $scaling genn 0 $RUNTIME $monitor $float_dtype $2 $para $kernel_timing
rm -r GeNNworkspace
done
done
done
done
done
RUNTIME=1
for monitor in $MONITORS; do
for para in pre post; do
for scaling in $SCALING_BIG; do
for float_dtype in float32 float64; do
for repeat in $(seq $N_REPEATS); do
echo Repeat $repeat: python $1 $scaling genn 0 $RUNTIME $monitor $float_dtype $2 $para $kernel_timing
python $1 $scaling genn 0 $RUNTIME $monitor $float_dtype $2 $para $kernel_timing
rm -r GeNNworkspace
done
done
done
done
done