From: bdemsky Date: Tue, 10 Mar 2009 19:57:45 +0000 (+0000) Subject: make sure not to prefetch stuff we already have... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=edf9ece5a77c856ba266d22ca33eae512b32ff8b;p=IRC.git make sure not to prefetch stuff we already have... --- 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);