Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
LOGNAME=$1
LOG_DIR=~/logs4
TREE_DIR=~/trees4
RUNS=7
if [ -z "$1" ]
then
echo "error - Usage: <benchPrefix>"
exit
fi
mkdir -p ${LOG_DIR}
cd ${TREE_DIR}/head/nofib
make clean && make boot && make EXTRA_HC_OPTS=" -O2 " NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base0
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base1
make clean && make boot && make EXTRA_HC_OPTS=" -O1 " NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base2
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base3
make clean && make boot && make EXTRA_HC_OPTS=" -O2 " NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base4
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base5
make clean && make boot && make EXTRA_HC_OPTS=" -O1 " NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base6
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}base7
#Running patch noCalls in directory ${TREE_DIR}/noCalls/nofib
cd ${TREE_DIR}/noCalls/nofib
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls0
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls1
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls2
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls3
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls4
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls5
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls6
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls7
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls8
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls9
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls10
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls11
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls12
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls13
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls14
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}noCalls15
#Running patch someCalls in directory ${TREE_DIR}/someCalls/nofib
cd ${TREE_DIR}/someCalls/nofib
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls0
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls1
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls2
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls3
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls4
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls5
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls6
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls7
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls8
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls9
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls10
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls11
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls12
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls13
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls14
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}someCalls15
#Running patch allCalls in directory ${TREE_DIR}/allCalls/nofib
cd ${TREE_DIR}/allCalls/nofib
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls0
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls1
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls2
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls3
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls4
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls5
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls6
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls7
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls8
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls9
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls10
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls11
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls12
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls13
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls14
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}allCalls15
#Running patch vanilla in directory ${TREE_DIR}/vanilla/nofib
cd ${TREE_DIR}/vanilla/nofib
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla0
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla1
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla2
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla3
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla4
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla5
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla6
make clean && make boot && make EXTRA_HC_OPTS=" -O2 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla7
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla8
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla9
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla10
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla11
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=300" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla12
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=-900" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla13
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fnew-blocklayout -fcfg-weights=callWeight=301" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla14
make clean && make boot && make EXTRA_HC_OPTS=" -O1 -fproc-alignment=64 -fno-new-blocklayout -fvanilla-blocklayout" NoFibRuns=${RUNS} 2>&1 | tee ${LOG_DIR}/log${LOGNAME}vanilla15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.