provides 'corepin' flag for mergesort
authoryeom <yeom>
Thu, 18 Nov 2010 06:30:52 +0000 (06:30 +0000)
committeryeom <yeom>
Thu, 18 Nov 2010 06:30:52 +0000 (06:30 +0000)
Robust/src/Benchmarks/oooJava/master-makefile
Robust/src/Benchmarks/oooJava/mergesort/makefile
Robust/src/Benchmarks/oooJava/mergesort/runr
Robust/src/Runtime/workschedule.c
Robust/src/buildscript

index 870f822f0ab8f36a21e4f632569ec99bf2532723..38dd565ba403d2e0b9a6bfd857ec3097b44b3d38 100644 (file)
@@ -13,7 +13,7 @@ BUILDSCRIPT=../../../buildscript
 
 
 COREPROFOVERFLOW= #-coreprof-checkoverflow
-USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
+USECOREPROF= #-coreprof $(COREPROFOVERFLOW) \
        -coreprof-eventwords 1024*1024*128 \
        -coreprof-enable cpe_main \
        -coreprof-enable cpe_taskexecute \
@@ -33,7 +33,7 @@ USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
 
 
 USEOOO= -ooojava $(NUM_OOO_WORKERS) 2      -ooodebug -squeue #-ooodebug-disable-task-mem-pool
-USERCR= -ooojava $(NUM_RCR_WORKERS) 2 -rcr -ooodebug -squeue
+USERCR= -ooojava $(NUM_RCR_WORKERS) 2 -rcr -ooodebug -squeue 
 BSFLAGS= -64bit -mainclass $(PROGRAM)  -heapsize-mb 8000 -garbagestats -joptimize -noloop -optimize -debug #-nooptimize #src-after-pp #-debug
 
 DRELEASEMODE=-disjoint-release-mode -disjoint-dvisit-stack-callees-on-top -disjoint-alias-file aliases.txt tabbed
@@ -43,7 +43,7 @@ default:
        $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES)
 
 rcr-remake-c:
-       $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr  $(SOURCE_FILES) 
+       $(BUILDSCRIPT) -nojava $(COREPINFLAG) $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr  $(SOURCE_FILES) 
 
 
 single: $(PROGRAM)s.bin
@@ -59,7 +59,7 @@ $(PROGRAM)p.bin: $(SOURCE_FILES) ../master-makefile
 rcr: $(PROGRAM)r.bin
 
 $(PROGRAM)r.bin: $(SOURCE_FILES) ../master-makefile
-       $(BUILDSCRIPT)         $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr  $(SOURCE_FILES) 
+       $(BUILDSCRIPT)  $(COREPINFLAG) $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr  $(SOURCE_FILES) 
 
 clean:
        rm -f  $(PROGRAM)p.bin $(PROGRAM)s.bin $(PROGRAM)r.bin
index 1f9262cc37c6778ceeae6dd8fba3ae58a754e16b..5ef57ae448775ef1f91695db937899f909c552a7 100644 (file)
@@ -4,5 +4,6 @@ SOURCE_FILES=BMergeSort4.java
 
 NUM_OOO_WORKERS=64
 NUM_RCR_WORKERS=64
+COREPINFLAG=-corepin
 
 include ../master-makefile
index 057ea4ce9491152a3ebb232186e59fa80f0063d5..73293372c7c8b13cd0a95a5b88ba44cb93bdb3a5 100755 (executable)
@@ -1 +1 @@
-time ./MergeSort4r.bin 134217728 32
+time numactl --interleave=all ./MergeSort4r.bin 134217728 32
index 01e0124deda6adfd7c1d1e30e5217c930de94aa3..b59151a07c05eefbd444cf85360df7fd88c8d4c4 100644 (file)
@@ -370,7 +370,6 @@ void workScheduleInit( int numProcessors,
                             workerMain,
                             (void*) &(workerDataArray[idx])
                             );
-    printf("assign %d on %d",idx,coreidx);
 
   }
 #endif
index 12c75a561df4b560cef7d7ac8191caf83c440373..f1ef1978b3b46631fe5bf571531b6309ad63d56d 100755 (executable)
@@ -28,6 +28,7 @@ echo -ooodebug-disable-task-mem-pool this is a tricky module, disable for simple
 echo -mempool-detect-misuse turn on to find code misusing pool-allocated records
 echo -rcr turn on runtime conflict resolver
 echo -squeue use single queue
+echo -corepin use core pinning
 echo
 echo Disjoint Reachability Analysis options
 echo -disjoint enable analysis