PROGRAM=Barneshut
SOURCE_FILES=Barneshut.java
-#SOURCE_FILES=test.java
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize #-coreprof -coreprof-checkoverflow
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
-MAINCLASS=KMeans
-PROGRAM=test
+PROGRAM=KMeans
BUILDSCRIPT=../../../buildscript
-SOURCE_FILES=${MAINCLASS}.java \
+SOURCE_FILES=${PROGRAM}.java \
Random.java \
Cluster.java \
Normal.java \
Common.java \
GlobalArgs.java
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -garbagestats -64bit -mainclass $(MAINCLASS) -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
-
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
- rm *.bin
+ rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -fr par sing
rm -f *~
rm -f *.dot
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
-./testp.bin -m 40 -n 40 -t 0.00001 -i inputs/random-n65536-d32-c16.txt -nthreads 1
+./KMeansp.bin -m 40 -n 40 -t 0.00001 -i inputs/random-n65536-d32-c16.txt -nthreads 1
-./tests.bin -m 40 -n 40 -t 0.00001 -i inputs/random-n65536-d32-c16.txt -nthreads 1
+./KMeanss.bin -m 40 -n 40 -t 0.00001 -i inputs/random-n65536-d32-c16.txt -nthreads 1
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug -joptimize
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
singler:
- $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM)s -builddir sing2 $(SOURCE_FILES2)
+ $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM)s -builddir sing2 $(SOURCE_FILES2)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
-
-disjoint:
- $(BUILDSCRIPT) -justanalyze $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
-
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
- rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
+ rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -fr par sing sing2
rm -f *~
rm -f *.dot
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 64 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 6*1024 -garbagestats -debug -joptimize -noloop -optimize #-ooodebug-disable-task-mem-pool
-#-coreprof -coreprof-eventwords 1024*1024*128 #-coreprof-checkoverflow
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
BUILDSCRIPT=../../../buildscript
-USEOOO= -ooojava 24 2 -ooodebug
-BSFLAGS= -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize
-#USEOOO= -ooojava 8 2 -ooodebug
-#BSFLAGS= -64bit -nooptimize -mainclass $(PROGRAM) -debug -garbagestats -joptimize -noloop
+
+COREPROFOVERFLOW= #-coreprof-checkoverflow
+USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+ -coreprof-eventwords 1024*1024*128 \
+ -coreprof-enable cpe_main \
+ -coreprof-enable cpe_taskdispatch
+# -coreprof-enable cpe_runmalloc \
+# -coreprof-enable cpe_runfree \
+# -coreprof-enable cpe_count_poolalloc \
+# -coreprof-enable cpe_count_poolreuse \
+# -coreprof-enable cpe_workschedgrab \
+# -coreprof-enable cpe_taskexecute \
+# -coreprof-enable cpe_taskretire \
+# -coreprof-enable cpe_taskstallvar \
+# -coreprof-enable cpe_taskstallmem
+
+
+USEOOO= -ooojava 24 2 -ooodebug -ooodebug-disable-task-mem-pool
+BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -debug -joptimize -noloop -optimize
DRELEASEMODE=-disjoint-release-mode -disjoint-alias-file aliases.txt tabbed
DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
-
default:
- $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
+ $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
single:
- $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
+ $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
ooo:
- $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
clean:
rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin
rm -f aliases.txt
rm -f mlpReport*txt
rm -f results*txt
+ rm -f coreprof.dat
+ rm -f trace.out
// make it clear we purposefully did not initialize this
output.println(" runningSESE->taskRecordMemPool = (MemPool*)0x1;");
}
- output.println( "#endif" );
+ output.println( "#endif // OOO_DISABLE_TASKMEMPOOL" );
// copy in-set into place, ready vars were already
pairItr.hasNext();
) {
SESEandAgePair srcPair = pairItr.next();
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" {");
output.println(" SESEcommon* src = &("+paramsprefix+"->"+srcPair+"->common);");
output.println(" RELEASE_REFERENCE_TO( src );");
output.println(" }");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
}
paramsprefix+"->"+temp+"_srcSESE + "+
paramsprefix+"->"+temp+"_srcOffset));");
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" SESEcommon* src = "+paramsprefix+"->"+temp+"_srcSESE;");
output.println(" RELEASE_REFERENCE_TO( src );");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
// or if the source was our parent, its already in our record to grab
output.println(" } else {");
// this variable pointed to, do release last in case we're just
// copying the same value in because 1->2->1 is safe but ref count
// 1->0->1 has a window where it looks like it should be free'd
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" if( "+rhs+"_srcSESE != NULL ) {");
output.println(" ADD_REFERENCE_TO( "+rhs+"_srcSESE );");
output.println(" }");
output.println(" RELEASE_REFERENCE_TO( oldSrc );");
output.println(" }");
output.println(" }");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
}
// for each lhs that is dynamic from a non-dynamic source, set the
assert currentSESE.getDynamicVarSet().contains( dynVar );
// first release a reference to current record
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" if( "+dynVar+"_srcSESE != NULL ) {");
output.println(" RELEASE_REFERENCE_TO( oldSrc );");
output.println(" }");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
output.println(" "+dynVar+"_srcSESE = NULL;");
}
fsen.getSESErecordName()+"*) mlpAllocSESErecord( sizeof( "+
fsen.getSESErecordName()+" ) );");
}
- output.println( "#else" );
+ output.println( "#else // OOO_DISABLE_TASKMEMPOOL" );
output.println(" "+
fsen.getSESErecordName()+"* seseToIssue = ("+
fsen.getSESErecordName()+"*) mlpAllocSESErecord( sizeof( "+
fsen.getSESErecordName()+" ) );");
- output.println( "#endif" );
+ output.println( "#endif // OOO_DISABLE_TASKMEMPOOL" );
// set up the SESE in-set and out-set objects, which look
// no need to add a reference to whatever is the newest record, because
// we initialized seseToIssue->refCount to *2*
// but release a reference to whatever was the oldest BEFORE the shift
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" if( "+pairOldest+" != NULL ) {");
output.println(" RELEASE_REFERENCE_TO( "+pairOldest+" );");
output.println(" }");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
// a task has variables to track static/dynamic instances
// that serve as sources, release the parent's ref of each
// non-null var of these types
-
output.println(" // releasing static SESEs");
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
Iterator<SESEandAgePair> pItr = fsen.getNeededStaticNames().iterator();
while( pItr.hasNext() ) {
SESEandAgePair pair = pItr.next();
output.println(" RELEASE_REFERENCE_TO( "+dynSrcVar+"_srcSESE );");
output.println(" }");
}
-
// destroy this task's mempool if it is not a leaf task
if( !fsen.getIsLeafSESE() ) {
- output.println( "#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" pooldestroy( runningSESE->taskRecordMemPool );");
- output.println( "#endif" );
}
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
// if this is not the Main sese (which has no parent) then return
if( (state.MLP && fsen != mlpa.getMainSESE()) ||
(state.OOOJAVA && fsen != oooa.getMainSESE())
) {
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" RELEASE_REFERENCE_TO( runningSESE );");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
} else {
// the main task has no parent, just free its record
output.println(" mlpFreeSESErecord( runningSESE );");
// this variable pointed to, do release last in case we're just
// copying the same value in because 1->2->1 is safe but ref count
// 1->0->1 has a window where it looks like it should be free'd
+ output.println("#ifndef OOO_DISABLE_TASKMEMPOOL" );
output.println(" if( "+refVar+"_srcSESE != NULL ) {");
output.println(" ADD_REFERENCE_TO( "+refVar+"_srcSESE );");
output.println(" }");
output.println(" if( oldSrc != NULL ) {");
output.println(" RELEASE_REFERENCE_TO( oldSrc );");
output.println(" }");
+ output.println("#endif // OOO_DISABLE_TASKMEMPOOL" );
+
output.println(" }");
}
}