-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnisse_all.sh
executable file
·40 lines (36 loc) · 1.01 KB
/
nisse_all.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
#!/usr/bin/env bash
export BASE_DIR=~/Codes/hydra
export BENCH_DIR="$BASE_DIR/Benchmark/Jotai"
export RESULTS_DIR="$BASE_DIR/Benchmark Results/merlin/jotai_benchmarks"
export JSON_FILE="$BASE_DIR/JSON Files/jotaiMerlinResults2.json"
CURRENT_DIR=$(pwd)
SCRIPTS_FOLDER="$BASE_DIR/Benchmark Scripts"
NISSE_SCRIPT="$SCRIPTS_FOLDER/nisse_profiler.sh"
PYTHON_SCRIPTS="$SCRIPTS_FOLDER/Jotai"
for i in {0..5}
do
echo "running $i/5"
COUNTER=1
rm -rf $BENCH_DIR/*.profiling
for f in $(ls $BENCH_DIR/*.c)
do
if [ `expr $COUNTER % 100` -eq 0 ]
then
echo "$COUNTER/$(ls $BENCH_DIR/*.c | wc -l)"
fi
clang $f -o a.out > /dev/null 2>&1
MAX=`expr $(./a.out | wc -l) - 6`
if [ $MAX -ge $i ]
then
bash "$NISSE_SCRIPT" $f $i > /dev/null 2>&1
fi
COUNTER=`expr $COUNTER + 1`
done
cd "$PYTHON_SCRIPTS"
python3 get_results.py $i
cd "$CURRENT_DIR"
done
rm a.out
cd "$PYTHON_SCRIPTS"
python3 process_results.py
cd "$CURRENT_DIR"