echo -printschedulesim print out scheduling simulator result graphs
echo -abcclose close the array boundary check
echo "-tilera generate tilera version binary (should be used together with -multicore"
+echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
echo "-raw generate raw version binary (should be used together with -multicore)"
echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
echo -threadsimulate generate multi-thread simulate version binary
MULTICOREFLAG=false
RAWFLAG=false
TILERAFLAG=false
+TILERACONFIG=''
CACHEFLUSHFLAG=false
RAWCONFIG=''
DEBUGFLAG=false
elif [[ $1 = '-raw' ]]
then
RAWFLAG=true
+JAVAOPTS="$JAVAOPTS -raw"
elif [[ $1 = '-tilera' ]]
then
TILERAFLAG=true
+elif [[ $1 = '-tileraconfig' ]]
+then
+TILERACONFIG="$2"
+shift
elif [[ $1 = '-cacheflush' ]]
then
CACHEFLUSHFLAG=true
elif $TILERAFLAG
then # TILERAFLAG
TILERADIR="$CURDIR/tilera"
-MAKEFILE="Makefile.tilera"
+MAKEFILE="Makefile.tilera.$TILERACONFIG"
+SIMHVC="sim.hvc.$TILERACONFIG"
mkdir $TILERADIR
cd $TILERADIR
make clean
fi #INTERRUPT version
cp $ROBUSTROOT/Runtime/Tilera/$MAKEFILE ./Makefile
+cp $ROBUSTROOT/Runtime/Tilera/$SIMHVS ./sim.hvc
cp ../Runtime/multicoretask.c ./
cp ../Runtime/multicoreruntime.c ./
cp ../Runtime/Queue.c ./
cp ../Runtime/SimpleHash.c ./
cp ../Runtime/ObjectHash.c ./
cp ../Runtime/socket.c ./
-cp ../Runtime/taskdefs.c ./
-cp ../Runtime/methods.c ./
cp ../Runtime/mem.c ./
cp ../Runtime/GenericHashtable.h ./
cp ../Runtime/mem.h ./