From: bdemsky Date: Wed, 11 Mar 2009 05:21:45 +0000 (+0000) Subject: prefetch less in advance X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b071b07a32274571f465669de42e85c101d94f6d;p=IRC.git prefetch less in advance --- diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java index a20608f3..2d08aba8 100644 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/MatrixMultiply/MatrixMultiplyN.java @@ -24,7 +24,7 @@ public class MatrixMultiply extends Thread{ offsets[0] = getoffset{MMul, a}; offsets[1] = (short) 0; offsets[2] = (short) x0; - offsets[3] = (short) 63; + offsets[3] = (short) 15; System.rangePrefetch(mmul, offsets); //Get first part of C @@ -36,14 +36,14 @@ public class MatrixMultiply extends Thread{ double lc[][]=mmul.c; double lb[][]=mmul.btranspose; int M=mmul.M; - int l=32; + int l=8; //Use btranspose for cache performance for(int i = x0; i< x1; i++,l++){ double a[]=la[i]; double c[]=lc[i]; - if ((l&63)==0) { + if ((l&15)==0) { offsets2[0] = (short) x0+l; - if ((x0+l+64)>x1) { + if ((x0+l+16)>x1) { int x=x1-x0-l-1; if (x>0) { offsets[1]=(short) x; @@ -51,7 +51,7 @@ public class MatrixMultiply extends Thread{ System.rangePrefetch(lc, offsets2); } } else { - offsets[1] = (short) 63; + offsets[1] = (short) 15; System.rangePrefetch(la, offsets2); System.rangePrefetch(lc, offsets2); }