From 211ff2415326dc437975a890012d45c7a881379a Mon Sep 17 00:00:00 2001 From: adash Date: Tue, 6 May 2008 22:11:44 +0000 Subject: [PATCH] small changes + removed comments --- .../Prefetch/SOR/dsm/JGFSORBench.java | 8 +- .../Prefetch/SOR/dsm/SORRunner.java | 93 ++++++++++--------- .../src/Benchmarks/Prefetch/SOR/dsm/makefile | 14 +-- 3 files changed, 58 insertions(+), 57 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java b/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java index 21773b9e..273155a7 100644 --- a/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java +++ b/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java @@ -27,7 +27,7 @@ public class JGFSORBench { Random R; public double Gtotal; public int cachelinesize; - public long sync[][]; + public int sync[][]; public JGFSORBench(int nthreads){ this.nthreads = nthreads; @@ -127,9 +127,9 @@ public class JGFSORBench { } } - public long[][] init_sync(int nthreads, int cachelinesize) { - long[][] sync; - sync = global new long [nthreads][cachelinesize]; + public int[][] init_sync(int nthreads, int cachelinesize) { + int[][] sync; + sync = global new int [nthreads][cachelinesize]; for (int i = 0; i Mm1) iupper = Mm1+1; if (tmpid == (numthreads-1)) iupper = Mm1+1; - for (int p=0; p<2*numiterations; p++) { - atomic { - for (int i=ilow+(p%2); i