From 4c8105af235eba0899070b0dd5de0f06c24d659d Mon Sep 17 00:00:00 2001 From: adash Date: Thu, 12 Mar 2009 17:45:11 +0000 Subject: [PATCH] Manual prefetch versions of Array and Chase microbenchmarks --- .../Prefetch/ManualPrefetch/Array/Array.java | 43 +++++++++++++++++ .../Prefetch/ManualPrefetch/Array/makefile | 9 ++++ .../Prefetch/ManualPrefetch/Chase/Chase.java | 47 +++++++++++++++++++ .../Prefetch/ManualPrefetch/Chase/makefile | 11 +++++ 4 files changed, 110 insertions(+) create mode 100644 Robust/src/Benchmarks/Prefetch/ManualPrefetch/Array/Array.java create mode 100644 Robust/src/Benchmarks/Prefetch/ManualPrefetch/Array/makefile create mode 100644 Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/Chase.java create mode 100644 Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/makefile diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Array/Array.java b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Array/Array.java new file mode 100644 index 00000000..48badc4e --- /dev/null +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Array/Array.java @@ -0,0 +1,43 @@ +public class Array extends Thread { + int [][] array; + + public Array() { + int xmax=10000; + int ymax=10; + array=global new int[xmax][ymax]; + for(int i=0;i