hack to avoid reprefetching the same things
authorbdemsky <bdemsky>
Sat, 14 Mar 2009 17:26:13 +0000 (17:26 +0000)
committerbdemsky <bdemsky>
Sat, 14 Mar 2009 17:26:13 +0000 (17:26 +0000)
Robust/src/Benchmarks/Prefetch/ManualPrefetch/2DConv/ConvolutionSizeC.java

index 4d4292713a83a419a9c401d48c105331f8425b96..089bb89e4fbb6ee5afc3f170c1599b983501feb9 100644 (file)
@@ -64,11 +64,11 @@ public class Convolution extends Thread {
       short[] offsets2 = new short[2];
          
 
-      int l=x0+14;
+      int l=14;
       for(int i=x0;i<x1;i++,l++){
         if((l&31) == 0) {  //prefetch every 16th iteration
           //Prefetch this.img.inputImage[] 
-          offsets2[0] = (short) l;
+          offsets2[0] = (short) (l+x0);
           offsets2[1] = (short) 31;
           System.rangePrefetch(tempinput, offsets2);
           System.rangePrefetch(tempout, offsets2);