From edf9ece5a77c856ba266d22ca33eae512b32ff8b Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 10 Mar 2009 19:57:45 +0000 Subject: [PATCH] make sure not to prefetch stuff we already have... --- .../ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java index 5b2d22cb..37d450b4 100644 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java @@ -42,11 +42,12 @@ public class MatrixMultiply extends Thread{ double a[]=la[i]; double c[]=lc[i]; if (((l+32)&63)==0) { + int l2=l+32; offsets[0] = getoffset{MMul, a}; offsets[1] = (short) 0; - offsets[2] = (short) x0+l; - if ((x0+l+64)>x1) - offsets[3]=x1-x0-l-1; + offsets[2] = (short) x0+l2; + if ((x0+l2+64)>x1) + offsets[3]=x1-x0-l2-1; else offsets[3] = (short) 63; System.rangePrefetch(mmul, offsets); -- 2.34.1