-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_software.sh
executable file
·68 lines (50 loc) · 2.18 KB
/
run_software.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
65
66
67
68
#!/bin/bash
function ask_user() {
while true; do
echo -e "
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
| Which key schedule (ID) should be reconstructed? |
| |
| ID | expected runtime for 16 CPU cores (ms) |
| ======|========================================= |
| 1.) 0 | 24 |
| 2.) 1 | 15,560 |
| 3.) 2 | 134 |
| 4.) 3 | 935 |
| 5.) 4 | 8,537 |
| 6.) 5 | 240 |
| 7.) 6 | 114 |
| 8.) 7 | 11,645 |
| 9.) 8 | 112 |
| 10.) 9 | 17 |
| |
| 11.) EXIT |
| |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\n"
read -e -p "Select option: " choice
if [ "$choice" == "1" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 0 1 1 0.001
elif [ "$choice" == "2" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 1 2 1 0.001
elif [ "$choice" == "3" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 2 3 1 0.001
elif [ "$choice" == "4" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 3 4 1 0.001
elif [ "$choice" == "5" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 4 5 1 0.001
elif [ "$choice" == "6" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 5 6 1 0.001
elif [ "$choice" == "7" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 6 7 1 0.001
elif [ "$choice" == "8" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 7 8 1 0.001
elif [ "$choice" == "9" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 8 9 1 0.001
elif [ "$choice" == "10" ]; then
./software/aeskeyfix_workstealing_cilk 0.3 9 10 1 0.001
elif [ "$choice" == "11" ]; then
exit 0
fi
done
}
clear && ask_user