-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·72 lines (50 loc) · 1.62 KB
/
run.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
base_dir='./scripts/'
tail_name='_64c_simsmall.rcS'
# tail_name='_64c_simlarge.rcS'
# benchmark_name=('blackscholes' 'bodytrack' 'canneal' 'dedup' 'facesim' 'ferret' 'fluidanimate' 'freqmine' 'streamcluster' 'swaptions' 'vips' 'x264' 'rtview')
benchmark_name=('blackscholes' 'canneal' 'ferret' 'swaptions' 'vips' 'x264' 'rtview')
# benchmark_name=('bodytrack' 'dedup' 'facesim' 'fluidanimate' 'freqmine' 'streamcluster')
# l1I_cache_size='32kB'
# l1I_cache_asso='2'
# l1D_cache_size='64kB'
# l1D_cache_asso='2'
# l2_cache_size='2MB'
# l2_cache_asso='8'
# cacheline_size='64' # 64B
mem_size='512MB'
cpu_type='atomic'
cpu_num=4
# tail_num=5000000000
# X86 | ALPHA
model='X86'
# model='ALPHA'
if [ $model = 'X86' ]; then
kernel='x86_64-vmlinux-2.6.22.9.smp'
disk_img='x86root-parsec.img'
else
kernel='alpha_vmlinux_parsec'
disk_img='linux-parsec-2-1-m5.img'
fi
debug=false
debug_info='CacheDip'
debug_outfile='debug.out'
for name in ${benchmark_name[@]}
do
echo =========== benchmark: $name
rm -rf m5mout/
script_dir=$base_dir$name/$name$tail_name
if $debug; then
./build/$model/gem5.opt --debug-flags=$debug_info --debug-file=$debug_outfile \
./configs/example/fs.py --script=$script_dir \
-n $cpu_num --cpu-type $cpu_type \
--mem-size=$mem_size --caches --l2cache \
--kernel=$kernel --disk-image=$disk_img
else
./build/$model/gem5.opt ./configs/example/fs.py --script=$script_dir \
-n $cpu_num --cpu-type $cpu_type \
--mem-size=$mem_size --caches --l2cache \
--kernel=$kernel --disk-image=$disk_img
fi
cp m5out/stats.txt res_stats/stats_${name}.txt
echo ========== finish benchmark: $name
done