forked from cdsc-github/parade-ara-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sw.ooo.sh
executable file
·64 lines (59 loc) · 2.66 KB
/
run.sw.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 --l2_size=64kB --num-l2caches=32 --mem-size=2GB --num-dirs=4 --ruby --lcacc --garnet=fixed --topology=Mesh --mesh-rows=4"
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##############
'46552259' #'Deblur_Modified'
'40887808' #'Denoise'
'61631667' #'Registration_Modified'
'35246170' #'Segmentation'
###CoMmercial(CM) benchmarks###################
'16321213' #'BlackScholes'
'26705863' #'StreamCluster'
'18410395' #'Swaptions'
###computer VISion(VIS) benchmarks#############
'50832485' #'LPCIP_Desc'
'21348999' #'Texture_Synthesis'
###NAVigation(NAV) benchmarks##################
'55767722' #'Robot_Localization'
'57992618' #'Disparity_Map'
'53328291' #'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
################################################################################################################