TEMP="temp.out"
DUMPDIR="dumps"
TIMEMAX=5000s
+ROUND=15
+BUDGET=15
+TUNERCONF="onehottuner.conf binarytuner.conf unarytuner.conf"
+
echo "DONE!" >>$TEMP
echo "Program Execution Time: $DIFF" >>$TEMP
mkdir -p $DUMPDIR
- mv DUMP* $DUMPDIR
+ mv DUMP* "$PAR.dump"
+ mv "$PAR.dump" $DUMPDIR
elif [ $2 = '--csolver' ]; then
START=$(date +%s.%N)
timeout $TIMEMAX ./run.sh csolverHexiom.py $PAR --csolver >> $TEMP
--- /dev/null
+#!/bin/bash
+
+#Terminate the script if even one command fails
+set -e
+
+
+#Variables
+source ../common.sh
+BIN=../../bin
+BDIR=../Benchmarks/hexiom/learningset/
+
+#Checking the number of
+if [ "$#" -lt 1 ]; then
+ echo "Illegal number of argument"
+ echo "./learn.sh [LearningSet]"
+ exit 1
+fi
+if [ "$1" -gt 2 ]; then
+ echo "Only 3 sets are available for learning. Parameter should be less than 3"
+ echo "./bench.sh [NUMBER] [--csolver/--dump]"
+ exit 1
+fi
+
+
+declare -a LearningSet=("${BDIR}38.dump ${BDIR}41.dump ${BDIR}43.dump ${BDIR}44.dump ${BDIR}46.dump ${BDIR}47.dump ${BDIR}49.dump ${BDIR}50.dump"
+"${BDIR}36.dump ${BDIR}41.dump ${BDIR}42.dump ${BDIR}44.dump ${BDIR}45.dump ${BDIR}47.dump ${BDIR}48.dump ${BDIR}50.dump"
+"${BDIR}36.dump ${BDIR}38.dump ${BDIR}42.dump ${BDIR}43.dump ${BDIR}45.dump ${BDIR}46.dump ${BDIR}48.dump ${BDIR}49.dump")
+
+echo ${LearningSet[$1]}
+cd $BIN
+./run.sh serializestatictuner
+./run.sh runmultituner $BUDGET $ROUND ${LearningSet[$1]} - $TUNERCONF
+
echo "DONE!" >> $TEMP
echo "Program Execution Time: $DIFF" >>$TEMP
mkdir -p $DUMPDIR
- mv DUMP* $DUMPDIR
+ filename=$(basename -- "$PAR")
+ filename="${filename%.*}"
+ mv DUMP* "$filename.dump"
+ mv "$filename.dump" $DUMPDIR
elif [ $2 = '--csolver' ]; then
START=$(date +%s.%N)
timeout $TIMEMAX ./run.sh python killerSolver.py --problem $PAR --csolver >> $TEMP
--- /dev/null
+#!/bin/bash
+
+#Terminate the script if even one command fails
+set -e
+
+
+#Variables
+source ../common.sh
+BIN=../../bin
+BDIR=../Benchmarks/sudoku-csolver/learningset/
+
+#Checking the number of
+if [ "$#" -lt 1 ]; then
+ echo "Illegal number of argument"
+ echo "./learn.sh [LearningSet]"
+ exit 1
+fi
+if [ "$1" -gt 2 ]; then
+ echo "Only 3 sets are available for learning. Parameter should be less than 3"
+ echo "./bench.sh [NUMBER] [--csolver/--dump]"
+ exit 1
+fi
+
+
+declare -a LearningSet=("${BDIR}2-25-5.dump ${BDIR}2-25.dump ${BDIR}36x36-591.dump ${BDIR}2-36-3.dump ${BDIR}2-36-4.dump ${BDIR}2-36.dump ${BDIR}4-16-2.dump ${BDIR}4-16.dump ${BDIR}5-16.dump"
+"${BDIR}2-25-4.dump ${BDIR}2-25.dump ${BDIR}2-36-2.dump ${BDIR}2-36-4.dump ${BDIR}2-36-5.dump ${BDIR}4-16-2.dump ${BDIR}4-16-3.dump ${BDIR}5-16.dump ${BDIR}6-16.dump"
+"${BDIR}2-25-4.dump ${BDIR}2-25-5.dump ${BDIR}2-36-2.dump ${BDIR}2-36-3.dump ${BDIR}2-36-5.dump ${BDIR}2-36.dump ${BDIR}4-16-3.dump ${BDIR}4-16.dump ${BDIR}6-16.dummp")
+
+echo ${LearningSet[$1]}
+cd $BIN
+./run.sh serializestatictuner
+./run.sh runmultituner $BUDGET $ROUND ${LearningSet[$1]} - $TUNERCONF
+
echo "DONE!" >> $TEMP
echo "Program Execution Time: $DIFF" >>$TEMP
mkdir -p $DUMPDIR
- mv DUMP* $DUMPDIR
+ mv DUMP* "$PAR.dump"
+ mv "$PAR.dump" $DUMPDIR
elif [ $2 = '--csolver' ]; then
START=$(date +%s.%N)
timeout $TIMEMAX ./run.sh nqueen $PAR --csolver >> $TEMP
--- /dev/null
+#!/bin/bash
+
+#Terminate the script if even one command fails
+set -e
+
+
+#Variables
+source ../common.sh
+BIN=../../bin
+BDIR=../Benchmarks/nqueens/learningset/
+
+#Checking the number of
+if [ "$#" -lt 1 ]; then
+ echo "Illegal number of argument"
+ echo "./learn.sh [LearningSet]"
+ exit 1
+fi
+if [ "$1" -gt 2 ]; then
+ echo "Only 3 sets are available for learning. Parameter should be less than 3"
+ echo "./bench.sh [NUMBER] [--csolver/--dump]"
+ exit 1
+fi
+
+
+declare -a LearningSet=("${BDIR}96.dump ${BDIR}112.dump ${BDIR}144.dump ${BDIR}160.dump ${BDIR}224.dump ${BDIR}256.dump ${BDIR}320.dump ${BDIR}352.dump"
+"${BDIR}64.dump ${BDIR}112.dump ${BDIR}128.dump ${BDIR}160.dump ${BDIR}192.dump ${BDIR}256.dump ${BDIR}288.dump ${BDIR}352.dump ${BDIR}384.dump"
+"${BDIR}64.dump ${BDIR}96.dump ${BDIR}128.dump ${BDIR}144.dump ${BDIR}192.dump ${BDIR}224.dump ${BDIR}288.dump ${BDIR}320.dump ${BDIR}384.dump")
+
+echo ${LearningSet[$1]}
+cd $BIN
+./run.sh serializestatictuner
+./run.sh runmultituner $BUDGET $ROUND ${LearningSet[$1]} - $TUNERCONF
+
echo "DONE!" >> $TEMP
echo "Program Execution Time: $DIFF" >>$TEMP
mkdir -p $DUMPDIR
- mv DUMP* $DUMPDIR
+ filename=$(basename -- "$PAR")
+ filename="${filename%.*}"
+ mv DUMP* "$filename.dump"
+ mv "$filename.dump" $DUMPDIR
elif [ $2 = '--csolver' ]; then
START=$(date +%s.%N)
timeout $TIMEMAX ./run.sh python Sudoku.py --file $PAR --csolver >> $TEMP
--- /dev/null
+#!/bin/bash
+
+#Terminate the script if even one command fails
+set -e
+
+
+#Variables
+source ../common.sh
+BIN=../../bin
+BDIR=../Benchmarks/sudoku-csolver/learningset/
+
+#Checking the number of
+if [ "$#" -lt 1 ]; then
+ echo "Illegal number of argument"
+ echo "./learn.sh [LearningSet]"
+ exit 1
+fi
+if [ "$1" -gt 2 ]; then
+ echo "Only 3 sets are available for learning. Parameter should be less than 3"
+ echo "./bench.sh [NUMBER] [--csolver/--dump]"
+ exit 1
+fi
+
+
+declare -a LearningSet=("${BDIR}36x36-591.dump ${BDIR}36x36-592.dump ${BDIR}36x36-594.dump ${BDIR}36x36-595.dump ${BDIR}36x36-597.dump ${BDIR}36x36-598.dump ${BDIR}36x36-600.dump ${BDIR}36x36-892.dump ${BDIR}36x36-895.dump ${BDIR}36x36-896.dump ${BDIR}36x36-898.dump"
+"${BDIR}36x36-590.dump ${BDIR}36x36-592.dump ${BDIR}36x36-593.dump ${BDIR}36x36-595.dump ${BDIR}36x36-596.dump ${BDIR}36x36-598.dump ${BDIR}36x36-599.dump ${BDIR}36x36-892.dump ${BDIR}36x36-893.dump ${BDIR}36x36-896.dump ${BDIR}36x36-897.dump"
+"${BDIR}36x36-590.dump ${BDIR}36x36-591.dump ${BDIR}36x36-593.dump ${BDIR}36x36-596.dump ${BDIR}36x36-597.dump ${BDIR}36x36-599.dump ${BDIR}36x36-600.dump ${BDIR}36x36-893.dump ${BDIR}36x36-895.dump ${BDIR}36x36-897.dump ${BDIR}36x36-898.dump")
+
+echo ${LearningSet[$1]}
+cd $BIN
+./run.sh serializestatictuner
+./run.sh runmultituner $BUDGET $ROUND ${LearningSet[$1]} - $TUNERCONF
+