Move to the more automated gem5-bench benchmarking script.

Enable everything in the toolchain in preparation to future benchmarking
to prevent future rebuilds, notably C++, Fortran and LTO support.

Document compiler optimizations for benchmarking.

Document graph-build for monitoring build times.
This commit is contained in:
Ciro Santilli
2018-02-24 05:27:03 +00:00
parent 8a5c310535
commit 42d86576cd
4 changed files with 66 additions and 12 deletions

17
gem5-bench Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
replay=false
while getopts r OPT; do
case "$OPT" in
r)
replay=true
;;
esac
done
shift "$(($OPTIND - 1))"
bench="$@"
if "$replay"; then
./run -a arm -e 'init=/eval.sh - lkmc_eval="m5 resetstats;'"$bench"';m5 exit"' -g -- -r 1
else
./run -a arm -e 'init=/eval.sh - lkmc_eval="m5 checkpoint;m5 resetstats;'"$bench"';m5 exit"' -g
fi
awk '/^system.cpu.numCycles /{ print $2 }' m5out/stats.txt