From: adash Date: Sun, 13 Dec 2009 05:40:21 +0000 (+0000) Subject: SOR fix, problem was with Random generator that had an initial seed defined X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=472e6621d1b0f66b570de6bfae4b1e98368f258c;p=IRC.git SOR fix, problem was with Random generator that had an initial seed defined but never used --- diff --git a/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java b/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java index 6e13994d..b1d563d4 100644 --- a/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java +++ b/Robust/src/Benchmarks/Prefetch/SOR/dsm/JGFSORBench.java @@ -58,6 +58,7 @@ public class JGFSORBench { double[][] G; int num_iterations; + long RANDOM_SEED; atomic { numthreads = sor.nthreads; @@ -65,6 +66,7 @@ public class JGFSORBench { mybarr = global new BarrierServer(numthreads); G = global new double[datasize][]; num_iterations = sor.JACOBI_NUM_ITER; + RANDOM_SEED = sor.RANDOM_SEED; } mybarr.start(mid[0]); @@ -80,7 +82,7 @@ public class JGFSORBench { atomic { for(int i=0;i