1 ##########################################################################
3 # This master makefile shoudl be included in each local makefile of a
4 # benchmark directory. The local makefile should define PROGRAM as
5 # the name of the class with the main method, which also becomes the
6 # name of the output binary. The local makefile should also declare
7 # SOURCE_FILES with whatever Java files should be compiled
9 ##########################################################################
12 BUILDSCRIPT=../../../buildscript
15 COREPROFOVERFLOW= #-coreprof-checkoverflow
16 USECOREPROF= #-coreprof $(COREPROFOVERFLOW) \
17 -coreprof-eventwords 1024*1024*128 \
18 -coreprof-enable cpe_main \
19 -coreprof-enable cpe_taskexecute \
20 -coreprof-enable cpe_taskretire \
21 -coreprof-enable cpe_workschedsubmit \
22 -coreprof-enable cpe_workschedgrab \
23 -coreprof-enable cpe_taskdispatch
24 # -coreprof-enable cpe_runmalloc \
25 # -coreprof-enable cpe_poolalloc \
26 # -coreprof-enable cpe_preparememq \
27 # -coreprof-enable cpe_runfree \
28 # -coreprof-enable cpe_count_poolalloc \
29 # -coreprof-enable cpe_count_poolreuse \
30 # -coreprof-enable cpe_taskstallvar \
31 # -coreprof-enable cpe_taskstallmem
34 USEOOO= -ooojava 24 2 -ooodebug -squeue #-ooodebug-disable-task-mem-pool
35 USERCR= -ooojava 23 2 -rcr -ooodebug -squeue
36 BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 8000 -garbagestats -joptimize -noloop -optimize -debug #-nooptimize #src-after-pp #-debug
38 DRELEASEMODE=-disjoint-release-mode -disjoint-dvisit-stack-callees-on-top -disjoint-alias-file aliases.txt tabbed
39 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
42 $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
45 $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr $(SOURCE_FILES)
48 single: $(PROGRAM)s.bin
50 $(PROGRAM)s.bin: $(SOURCE_FILES) ../master-makefile
51 $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF) -o $(PROGRAM)s -builddir sing $(SOURCE_FILES)
55 $(PROGRAM)p.bin: $(SOURCE_FILES) ../master-makefile
56 $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par $(SOURCE_FILES)
60 $(PROGRAM)r.bin: $(SOURCE_FILES) ../master-makefile
61 $(BUILDSCRIPT) $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr $(SOURCE_FILES)
64 rm -f $(PROGRAM)p.bin $(PROGRAM)s.bin $(PROGRAM)r.bin