From c273d6dcdd4e6a31a0ed16594a3e836319154238 Mon Sep 17 00:00:00 2001 From: adash Date: Sun, 13 Dec 2009 06:03:16 +0000 Subject: [PATCH] SOR changes to single java version --- .../Prefetch/SOR/javasingle/JGFSORBench.java | 20 ++++++++++--------- .../Prefetch/SOR/javasingle/SORRunner.java | 11 +++++----- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/SOR/javasingle/JGFSORBench.java b/Robust/src/Benchmarks/Prefetch/SOR/javasingle/JGFSORBench.java index 325baefb..c5d8c780 100644 --- a/Robust/src/Benchmarks/Prefetch/SOR/javasingle/JGFSORBench.java +++ b/Robust/src/Benchmarks/Prefetch/SOR/javasingle/JGFSORBench.java @@ -44,14 +44,15 @@ public class JGFSORBench { public static void JGFkernel(JGFSORBench sor) { int numthreads, datasize; - double[][] G; int num_iterations; + long RANDOM_SEED; numthreads = sor.nthreads; datasize = sor.datasizes[sor.size]; G = new double[datasize][]; num_iterations = sor.JACOBI_NUM_ITER; + RANDOM_SEED = sor.RANDOM_SEED; double omega = 1.25; double omega_over_four = omega * 0.25; @@ -63,20 +64,21 @@ public class JGFSORBench { SORWrap[] thobjects = new SORWrap[numthreads]; - for(int i=0;i