From c593f32feadac9eab5f064bb9ec20510bac5c689 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 2 May 2008 20:30:16 +0000 Subject: [PATCH] bug fix --- .../Prefetch/MatrixMultiply/MatrixMultiplyN.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiplyN.java b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiplyN.java index 7543a332..f0314b30 100644 --- a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiplyN.java +++ b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiplyN.java @@ -13,11 +13,11 @@ public class MatrixMultiply extends Thread{ public void run() { atomic { //Use btranspose for cache performance - for(int i = x0; i<= x1; i++){ + for(int i = x0; i< x1; i++){ double a[]=mmul.a[i]; double c[]=mmul.c[i]; int M=mmul.M; - for (int j = y0; j <= y1; j++) { + for (int j = y0; j < y1; j++) { double innerProduct=0; double b[] = mmul.btranspose[j]; for(int k = 0; k < M; k++) { @@ -57,9 +57,9 @@ public class MatrixMultiply extends Thread{ int base=0; for(int i=0;i