-
Notifications
You must be signed in to change notification settings - Fork 14
/
run.sw.comp.ooo.sh
executable file
·64 lines (59 loc) · 2.59 KB
/
run.sw.comp.ooo.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
################################################################################################################
#Command to restore from the checkpoint (after OS boot), and then read new script,
#run it using atomic cpu until the end of initilization, then take checkpoint and exit
#Common configurations in the script
GEM5=./parade-test/gem5.opt
OUT_DIR=./parade-test/
BOOT_DIR=./configs/boot/
START_CKPT_DIR=./parade-test/ckpt-1core/
PREFIX=SW
SUFFIX=sw
COMMON_CONFIG="configs/example/fs.py --checkpoint-dir=${START_CKPT_DIR} --restore-with-cpu=timing -r 1 -n 1 --mem-size=2GB --caches --l2cache --l2_size=32MB"
BENCHS=(
###Medical Imaging(MI) benchmarks##############
'Deblur_Modified'
'Denoise'
'Registration_Modified'
'Segmentation'
###CoMmercial(CM) benchmarks###################
'BlackScholes'
'StreamCluster'
'Swaptions'
###computer VISion(VIS) benchmarks#############
'LPCIP_Desc'
'Texture_Synthesis'
###NAVigation(NAV) benchmarks##################
'Robot_Localization'
'Disparity_Map'
'EKF_SLAM'
)
WARMUP=(
###Medical Imaging(MI) benchmarks##############
'46234632' #'Deblur_Modified'
'9176568' #'Denoise'
'61290159' #'Registration_Modified'
'34934433' #'Segmentation'
###CoMmercial(CM) benchmarks###################
'16040278' #'BlackScholes'
'26416268' #'StreamCluster'
'18144506' #'Swaptions'
###computer VISion(VIS) benchmarks#############
'50494740' #'LPCIP_Desc'
'21092162' #'Texture_Synthesis'
###NAVigation(NAV) benchmarks##################
'55408382' #'Robot_Localization'
'57592552' #'Disparity_Map'
'52993409' #'EKF_SLAM'
)
for((i=0; i < ${#BENCHS[@]}; i++)) do
bench=${BENCHS[$i]}
BENCH_DIR=${OUT_DIR}/${PREFIX}_${bench}/
SCRIPT_FILE=${BOOT_DIR}/${bench}.${SUFFIX}.rcS
OUT_FILE=${BENCH_DIR}/result.txt
echo "(time -p ${GEM5} --outdir=${BENCH_DIR} ${COMMON_CONFIG} -s ${WARMUP[$i]} -W ${WARMUP[$i]} --script=${SCRIPT_FILE}) >& ${OUT_FILE} &"
(time -p ${GEM5} --outdir=${BENCH_DIR} ${COMMON_CONFIG} -s ${WARMUP[$i]} -W ${WARMUP[$i]} --script=${SCRIPT_FILE}) >& ${OUT_FILE} &
done
################################################################################################################
#Command used to do checkpoint, we have to use the hack_back_ckpt.rcS to do checkpoint so that after restoring from checkpoint, it can read our new script
#./parade-test/gem5.opt --outdir=x86-out configs/example/fs.py --cpu-type=atomic -n 1 --mem-size=2GB --script=configs/boot/hack_back_ckpt.rcS
################################################################################################################