"include/ck/config.hpp" did not exist on "acbd7bd7c5efd17b7061157a5868e28acc04d33e"
deterministic.sh 676 Bytes
Newer Older
Hejing Li's avatar
Hejing Li committed
1
#!/bin/bash
2
set -x
Hejing Li's avatar
Hejing Li committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Runs the same simulation by default five times.
if [ -z "$1" ]
then
    echo "set run num to five"
    run_num=5
else
    echo "set run num to $1"
    run_num=$1
fi
python3 run.py pyexps/ae/determ.py --filter dt-gt-ib-sw --force --verbose --runs=$1
START=1

# Parse the json file into experiment's out_dir
for i in $(seq 1 $run_num);
do
18
    mkdir -p out/dt-gt-ib-sw/${i}
Hejing Li's avatar
Hejing Li committed
19
    python3 pyexps/log_parser.py out/dt-gt-ib-sw-$i.json
20
21
    
    cat out/dt-gt-ib-sw/${i}/host.client.0 | awk '/system.pc.simbricks_0:/ {print $1}' > out/dt-gt-ib-sw/${i}/host_trim
Hejing Li's avatar
Hejing Li committed
22
done
23
24
25


diff out/dt-gt-ib-sw/1/host_trim out/dt-gt-ib-sw/2/host_trim > out/dt-gt-ib-sw/host_trim12.diff