-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
47 lines (41 loc) · 982 Bytes
/
run.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
#!/bin/bash
VERSION=0.3
FILENAME="$(hostname -s)_ver${VERSION}.log"
JOBS=(
"himeno_local_L_single.sh"
"himeno_local_L_mpi4.sh"
"himeno_local_L_mpi8.sh"
"himeno_local_XL_mpi8.sh"
"stream_local_single.sh"
"stream_local_mpi4.sh"
"fio_tmp.sh"
"fio_work.sh"
# "hpl_local.sh"
# "unixbench.sh"
)
FILTER=(
"grep measured"
"grep measured"
"grep measured"
"grep measured"
"grep -A 4 Function"
"grep -A 4 Function"
"grep -A 1 jobs="
"grep -A 1 jobs="
# "grep -A 17 Summary"
# "grep -A 100 'BYTE UNIX Benchmarks'"
)
TEE="tee -a ${FILENAME}"
echo "" > ${FILENAME}
echo "# $(hostname)" | ${TEE}
echo "- regulation ver ${VERSION}" | ${TEE}
echo "- $(date +%Y%m%d_%H%M%S)" | ${TEE}
echo "" | ${TEE}
LAST=`expr ${#JOBS[@]} - 1`
for i in `seq 0 ${LAST}`; do
echo "## "${JOBS[i]} | ${TEE}
echo "\`\`\`" | ${TEE}
./jobs/${JOBS[i]} | ${FILTER[i]} | ${TEE}
echo "\`\`\`" | ${TEE}
echo "" | ${TEE}
done