add gccachecoherenon into buildscript
authorjzhou <jzhou>
Thu, 21 Jul 2011 02:30:04 +0000 (02:30 +0000)
committerjzhou <jzhou>
Thu, 21 Jul 2011 02:30:04 +0000 (02:30 +0000)
Robust/src/buildscript

index eadd5c6227b9195002bd28a9617467cb377748be..6c9c97ba0332e20a088e5deb7c40fcdf586e712d 100755 (executable)
@@ -84,6 +84,7 @@ echo "-tilera_memprof build the memprof version (should be used together with -t
 echo -accurateprofile build with accurate profile information including pre/post task processing info
 echo -profile_interrupt build with profile information of interrupts
 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
+echo -gccachecoherent turns on the cache coherence during gc
 echo
 echo Multicore GC options
 echo -perfcount performance counters
@@ -257,7 +258,8 @@ TILERAOUTPUTDIR="tilera"
 TILERA_PAGE_SIZE="0x10000"
 TILERA_PAGE_SIZE_BITS="16"
 TILERA_NUM_BLOCKS="20"
-TILERA_NUM_PAGES_PER_BLOCK="16" 
+TILERA_NUM_PAGES_PER_BLOCK="16"
+GCCACHECOHERENTFLAG=false
 
 if [[ -z $1 ]]
 then
@@ -434,6 +436,9 @@ PROFILEINTERRUPTFLAG=true
 elif [[ $1 = '-useio' ]]
 then
 USEIOFLAG=true
+elif [[ $1 = '-gccachecoherenton' ]]
+then
+GCCACHECOHERENTFLAG=true
 elif [[ $1 = '-taskstate' ]]
 then
 JAVAOPTS="$JAVAOPTS -taskstate"
@@ -1227,6 +1232,11 @@ then # GC_CACHE_ADAPT version
 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
 fi
 
+if $GCCACHECOHERENTFLAG
+then # gc cache coherent version
+TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
+fi
+
 if $PMCFLAG
 then
 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile