From bf385f22f8c181f16821d3333c983bcb7f4ffda8 Mon Sep 17 00:00:00 2001 From: adash Date: Mon, 20 Jul 2009 22:09:34 +0000 Subject: [PATCH] changes to Array benchmark --- .../Benchmarks/Prefetch/Array/Array2D.java | 37 +++++++++++++++++++ Robust/src/Benchmarks/Prefetch/Array/makefile | 6 +-- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 Robust/src/Benchmarks/Prefetch/Array/Array2D.java diff --git a/Robust/src/Benchmarks/Prefetch/Array/Array2D.java b/Robust/src/Benchmarks/Prefetch/Array/Array2D.java new file mode 100644 index 00000000..912cde90 --- /dev/null +++ b/Robust/src/Benchmarks/Prefetch/Array/Array2D.java @@ -0,0 +1,37 @@ +public class Array2D extends Thread { + int [][] array; + + public Array2D() { + int xmax=10000; + int ymax=10; + array=global new int[xmax][ymax]; + for(int i=0;i