From 262bdccf99a952de3e94cf0b100e695f45428e2b Mon Sep 17 00:00:00 2001 From: adash Date: Fri, 13 Mar 2009 22:27:07 +0000 Subject: [PATCH] bug fix for getting the correct offset when prefetching --- .../Benchmarks/Prefetch/ManualPrefetch/2DFFT/fft2d.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/2DFFT/fft2d.java b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/2DFFT/fft2d.java index 5813989b..b4505f2f 100644 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/2DFFT/fft2d.java +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/2DFFT/fft2d.java @@ -68,13 +68,13 @@ public class fft2d extends Thread { int t=x1-l-x0-1; if (t>0) { offsets2[1] = (short) t; - System.rangePrefetch(tempdataRe, offsets1); - System.rangePrefetch(tempdataIm, offsets1); + System.rangePrefetch(tempdataRe, offsets2); + System.rangePrefetch(tempdataIm, offsets2); } } else { offsets2[1] = (short) 15; - System.rangePrefetch(tempdataRe, offsets1); - System.rangePrefetch(tempdataIm, offsets1); + System.rangePrefetch(tempdataRe, offsets2); + System.rangePrefetch(tempdataIm, offsets2); } } double inputRe[] = tempdataRe[i]; //local array -- 2.34.1