From c75a99a16eb6305b91982df1894c92ada279b52d Mon Sep 17 00:00:00 2001 From: adash Date: Mon, 18 Feb 2008 20:43:02 +0000 Subject: [PATCH] working version --- .../Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java index 8e88a652..3e206863 100644 --- a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java +++ b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java @@ -49,7 +49,12 @@ public class MatrixMultiply extends Thread{ atomic{ mm = global new MatrixMultiply[NUM_THREADS]; - mm.mmul = global new MMul(0, 0, 0); + } + + for(i = 0; i < NUM_THREADS; i++) { + atomic{ + mm[i].mmul = global new MMul(0, 0, 0); + } } // Currently it is a 4 X 4 matrix divided into 4 blocks -- 2.34.1