-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-coll-Sets.sh
58 lines (31 loc) · 1020 Bytes
/
run-coll-Sets.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
#!/bin/bash
ITEMS=(coll-Sets)
OPT_OPTIONS=(O0 O1 O2)
## ##########
function patchFilesForOptOption () {
echo -e " ${RED}Started patching files for '$1'${NC}\n"
cd ./sources/benchmarkForOneSetImpl/ ; sh ./patch.sh $1 ; cd ../..
cd ./sources/common/ ; sh ./patch.sh $1 ; cd ../..
cd ./sources/compileForAllSetImplementations/ ; sh ./patch.sh $1 ; cd ../..
cd ./sources/runForAllBenchmarkTypes/ ; sh ./patch.sh $1 ; cd ../..
echo -e " ${RED}Finished patching files for '$1'${NC}\n"
}
## ##########
function main () {
for item in ${ITEMS[*]}
do
echo -e "\n\nEntering ${item}...\n\n"
cd ${item}
pwd
for optOption in ${OPT_OPTIONS[*]}
do
bash ./patch.sh ${optOption}
patchFilesForOptOption ${optOption}
make 2>&1 | tee fullOutput-${optOption}.txt
mv csvFileSets csvFileSets-${optOption}
done
cd ..
echo -e "\n\nDone ${item}...\n\n"
done
}
main