-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase-runtime-float.patch
More file actions
93 lines (86 loc) · 5.45 KB
/
base-runtime-float.patch
File metadata and controls
93 lines (86 loc) · 5.45 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
diff --git a/lib/spec2017/runspec2017.sh b/lib/spec2017/runspec2017.sh
index a0ec20c..608151d 100644
--- a/lib/spec2017/runspec2017.sh
+++ b/lib/spec2017/runspec2017.sh
@@ -59,7 +59,7 @@ function compute_spec2017_results() {
# Within that section, look for lines that look like:
# 410.bwaves 13590 2690 5.05 *
# and grab the last number, 5.05
- for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`;
+ for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`;
do
partial="$partial + l($b)"
count=$(($count + 1))
@@ -71,7 +71,7 @@ function compute_spec2017_results() {
# or, in order to process this with bc: exp( ( ln(x) + ln(y) + ln(z) ) / 3 )
SUM="$SUM + `echo "scale=8; e(($partial) / $count)" | bc -l`"
- LISTBMKS="$LISTBMKS `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/\([0-9]\{3\}\.\w\+\)\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`"
+ LISTBMKS="$LISTBMKS `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/\([0-9]\{3\}\.\w\+\)\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`"
[[ $count -lt $mincount ]] && mincount=$count
[[ $count -gt $maxcount ]] && maxcount=$count
@@ -102,7 +102,7 @@ function compute_spec2017_results() {
for bmk in `echo $LISTBMKS | tr " " "\n" | sort | uniq`;
do
reslist=""
- for res in `sed -n -e "/^=\+$/,/^ Est. SPEC/!d; s/$bmk\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p" $SPECDIR/result/*.[0-9]*.*txt 2>/dev/null`;
+ for res in `sed -n -e "/^=\+$/,/^ Est. SPEC/!d; s/$bmk\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p" $SPECDIR/result/*.[0-9]*.*txt 2>/dev/null`;
do
reslist="$reslist $res,"
done
diff --git a/lib/spec2k6/runhs06.sh b/lib/spec2k6/runhs06.sh
index f06ccbf..3c5c7e2 100755
--- a/lib/spec2k6/runhs06.sh
+++ b/lib/spec2k6/runhs06.sh
@@ -70,7 +70,7 @@ function calculate_results() {
# Within that section, look for lines that look like:
# 410.bwaves 13590 2690 5.05 *
# and grab the last number, 5.05
- for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`;
+ for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`;
do
partial="$partial + l($b)"
count=$(($count + 1))
@@ -82,7 +82,7 @@ function calculate_results() {
# or, in order to process this with bc: exp( ( ln(x) + ln(y) + ln(z) ) / 3 )
SUM="$SUM + `echo "scale=8; e(($partial) / $count)" | bc -l`"
- LISTBMKS="$LISTBMKS `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/\([0-9]\{3\}\.\w\+\)\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`"
+ LISTBMKS="$LISTBMKS `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/\([0-9]\{3\}\.\w\+\)\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $SPECDIR/result/*.$n.*txt 2>/dev/null`"
[[ $count -lt $mincount ]] && mincount=$count
[[ $count -gt $maxcount ]] && maxcount=$count
@@ -103,7 +103,7 @@ function calculate_results() {
for bmk in `echo $LISTBMKS | tr " " "\n" | sort | uniq`;
do
reslist=""
- for res in `sed -n -e "/^=\+$/,/^ Est. SPEC/!d; s/$bmk\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p" $SPECDIR/result/*.[0-9]*.*txt 2>/dev/null`;
+ for res in `sed -n -e "/^=\+$/,/^ Est. SPEC/!d; s/$bmk\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p" $SPECDIR/result/*.[0-9]*.*txt 2>/dev/null`;
do
reslist="$reslist $res,"
done
@@ -126,7 +126,7 @@ function summary_report() {
echo "Result:" $SUM >> $NAME/system.txt
for n in $RUNS;
do
- echo "Values RUN $n " `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $NAME/*.$n.*txt 2>/dev/null` >> $NAME/system.txt
+ echo "Values RUN $n " `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $NAME/*.$n.*txt 2>/dev/null` >> $NAME/system.txt
done
diff --git a/lib/spec2k6/runspec.sh b/lib/spec2k6/runspec.sh
index c7f65ca..c6b2087 100644
--- a/lib/spec2k6/runspec.sh
+++ b/lib/spec2k6/runspec.sh
@@ -163,7 +163,7 @@ do
# Within that section, look for lines that look like:
# 410.bwaves 13590 2690 5.05 *
# and grab the last number, 5.05
- for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' result/*.$n.*txt 2>/dev/null`;
+ for b in `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' result/*.$n.*txt 2>/dev/null`;
do
partial="$partial + l($b)"
count=$(($count + 1))
@@ -199,7 +199,7 @@ echo "Description:" $DESCRIPTION >> $NAME/system.txt
echo "Result:" $SUM >> $NAME/system.txt
for n in $RUNS;
do
- echo "Values RUN $n " `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $NAME/*.$n.*txt 2>/dev/null` >> $NAME/system.txt
+ echo "Values RUN $n " `sed -n -e '/^=\+$/,/^ Est. SPEC/!d; s/[0-9]\{3\}\.\w\+\s\+[0-9]\+\s\+[0-9.]\+\s\+\([0-9.]\+\)\s\+\*/\1/p' $NAME/*.$n.*txt 2>/dev/null` >> $NAME/system.txt
done
echo "Start time:" $START >> $NAME/system.txt