Decreasing the memory limit. Problem still exists in our servers
[satune.git] / src / Scripts / learnresultgen.sh
index d34f0909975e8012d03666ae956b7a9370734297..329b571443275e96f332573a7d811234395225f9 100755 (executable)
@@ -2,6 +2,8 @@
 # ./learnresultgen.sh [sypet] [learning set = 1, 2, 3, etc.] [algorithm= 1, 2, 3, 4]
 set -e
 
+ulimit -m 31000000
+
 if [ "$#" -lt 3 ]; then
         echo "Illegal number of argument"
         echo "./learnresultgen.sh [sypet] [learning set = 0, 1, 2, 3, etc.] [algorithm = Known Tuner Types: Random Tuner=1, Comp Tuner=2, Kmeans Tuner=3, Simulated Annealing Tuner=4]"
@@ -13,6 +15,7 @@ BENCHDIR=$SATUNEDIR/Benchmarks/$1
 BIN=$SATUNEDIR/bin
 
 source $SATUNEDIR/Benchmarks/common.sh
+$SATUNEDIR/Scripts/setup.sh
 cd $BENCHDIR
 ./learn.sh $2 $3
 cd $BIN