From bf134fff74f639d9b58745cfa203290402d917c2 Mon Sep 17 00:00:00 2001 From: adash Date: Sat, 26 Sep 2009 18:38:24 +0000 Subject: [PATCH] changes to the benchmarks --- .../RainForest/dsm/RainForest.java | 4 +- .../Distributed/RainForest/dsm/makefile | 4 +- .../Prefetch/2DConv/dsm/ConvolutionSizeC.java | 48 +++++++++++-------- .../Benchmarks/Prefetch/2DConv/dsm/Makefile | 4 +- .../Benchmarks/Prefetch/Array/ArrayEx.java | 37 +++++++++----- Robust/src/Benchmarks/Prefetch/Array/makefile | 9 ++-- .../Prefetch/SOR/dsm/JGFSORBenchSizeD.java | 2 +- .../src/Benchmarks/Prefetch/SOR/dsm/makefile | 26 +++++++--- .../Prefetch/SOR/javasingle/JGFSORBench.java | 3 +- .../SOR/javasingle/JGFSORBenchSizeC.java | 2 +- .../Prefetch/SOR/javasingle/makefile | 17 +++++-- .../src/Benchmarks/Prefetch/killallclients.sh | 3 ++ Robust/src/Runtime/DSTM/interface/dstm.h | 2 +- 13 files changed, 104 insertions(+), 57 deletions(-) diff --git a/Robust/src/Benchmarks/Distributed/RainForest/dsm/RainForest.java b/Robust/src/Benchmarks/Distributed/RainForest/dsm/RainForest.java index ecdcf42b..fc119484 100644 --- a/Robust/src/Benchmarks/Distributed/RainForest/dsm/RainForest.java +++ b/Robust/src/Benchmarks/Distributed/RainForest/dsm/RainForest.java @@ -1,6 +1,6 @@ -#define ROW 100 /* columns in the map */ +#define ROW 400 /* columns in the map */ #define COLUMN 100 /* rows of in the map */ -#define ROUNDS 256 /* Number of moves by each player */ +#define ROUNDS 512 /* Number of moves by each player */ #define PLAYERS 20 /* Number of Players when num Players != num of client machines */ #define RATI0 0.5 /* Number of lumberjacks to number of planters */ #define BLOCK 3 /* Area around the gamer to consider */ diff --git a/Robust/src/Benchmarks/Distributed/RainForest/dsm/makefile b/Robust/src/Benchmarks/Distributed/RainForest/dsm/makefile index c79f9e0a..df0290dc 100644 --- a/Robust/src/Benchmarks/Distributed/RainForest/dsm/makefile +++ b/Robust/src/Benchmarks/Distributed/RainForest/dsm/makefile @@ -11,8 +11,8 @@ SRC=tmp${MAINCLASS}.java \ AStarPathFinder.java FLAGS1=-dsm -optimize -mainclass ${MAINCLASS} -FLAGS2=-dsm -dsmcaching -abortreaders -optimize -mainclass ${MAINCLASS} -FLAGS3=-dsm -dsmcaching -prefetch -optimize -mainclass ${MAINCLASS} -excprefetch BarrierServer.updateAge -excprefetch RainForest.main -excprefetch GameMap.hasRock -excprefetch GameMap.hasTree -trueprob 0.90 +FLAGS2=-dsm -dsmcaching -transstats -abortreaders -optimize -mainclass ${MAINCLASS} +FLAGS3=-dsm -dsmcaching -transstats -abortreaders -prefetch -optimize -mainclass ${MAINCLASS} -excprefetch BarrierServer.updateAge -excprefetch RainForest.main -excprefetch GameMap.hasRock -excprefetch GameMap.hasTree -trueprob 0.90 default: cpp ${MAINCLASS}.java > tmp1${MAINCLASS}.java diff --git a/Robust/src/Benchmarks/Prefetch/2DConv/dsm/ConvolutionSizeC.java b/Robust/src/Benchmarks/Prefetch/2DConv/dsm/ConvolutionSizeC.java index 38a6c39b..0879227d 100644 --- a/Robust/src/Benchmarks/Prefetch/2DConv/dsm/ConvolutionSizeC.java +++ b/Robust/src/Benchmarks/Prefetch/2DConv/dsm/ConvolutionSizeC.java @@ -18,32 +18,34 @@ public class Convolution extends Thread { initKernel15(kernel); atomic { + int myx0=x0; + int myy0=y0; + int myx1=x1; + int myy1=y1; + double tempinput[][] = img.inputImage; double tempout[][] = img.outputImage; - double tinput1[] = tempinput[x0]; - double tinput2[] = tempinput[x0+1]; - double tinput3[] = tempinput[x0+2]; - double tinput4[] = tempinput[x0+3]; - double tinput5[] = tempinput[x0+4]; - double tinput6[] = tempinput[x0+5]; - double tinput7[] = tempinput[x0+6]; - double tinput8[] = tempinput[x0+7]; - double tinput9[] = tempinput[x0+8]; - double tinput10[] = tempinput[x0+9]; - double tinput11[] = tempinput[x0+10]; - double tinput12[] = tempinput[x0+11]; - double tinput13[] = tempinput[x0+12]; - double tinput14[] = tempinput[x0+13]; + double tinput1[] = tempinput[myx0+0]; + double tinput2[] = tempinput[myx0+1]; + double tinput3[] = tempinput[myx0+2]; + double tinput4[] = tempinput[myx0+3]; + double tinput5[] = tempinput[myx0+4]; + double tinput6[] = tempinput[myx0+5]; + double tinput7[] = tempinput[myx0+6]; + double tinput8[] = tempinput[myx0+7]; + double tinput9[] = tempinput[myx0+8]; + double tinput10[] = tempinput[myx0+9]; + double tinput11[] = tempinput[myx0+10]; + double tinput12[] = tempinput[myx0+11]; + double tinput13[] = tempinput[myx0+12]; + double tinput14[] = tempinput[myx0+13]; double tinput0[] = tinput1; - int l=x0+14; - for(int i=x0;i