From f4ed3b45675195f9ea062a8a30116c6cc30d26e0 Mon Sep 17 00:00:00 2001 From: adash Date: Sun, 2 Mar 2008 21:03:10 +0000 Subject: [PATCH] remove unnecessary lines --- .../Prefetch/MatrixMultiply/MatrixMultiply.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java index 8ab2fbb7..6d7de250 100644 --- a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java +++ b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java @@ -17,7 +17,7 @@ public class MatrixMultiply extends Thread{ //compute the results localresults=new int[1+x1-x0][1+y1-y0]; - //Transpose b for cache performance + //Use b transpose for cache performance for(int i = x0; i<= x1; i++){ int a[]=mmul.a[i]; int M=mmul.M; @@ -56,13 +56,13 @@ public class MatrixMultiply extends Thread{ atomic { matrix = global new MMul(800, 800, 800); matrix.setValues(); + matrix.transpose(); } atomic{ mm = global new MatrixMultiply[NUM_THREADS]; } - // Currently it is a 70 X 70 matrix divided into 4 blocks atomic { mm[0] = global new MatrixMultiply(matrix,0,0,799,300); mm[1] = global new MatrixMultiply(matrix,0,301,799,799); @@ -86,11 +86,6 @@ public class MatrixMultiply extends Thread{ System.printInt(r); System.printString("\n"); - //transpose matrix b - atomic { - matrix.transpose(); - } - // start a thread to compute each c[l,n] for (i = 0; i < NUM_THREADS; i++) { atomic { @@ -104,12 +99,11 @@ public class MatrixMultiply extends Thread{ atomic { tmp = mm[i]; } - System.printString("Joining " + i + " ... "); tmp.join(); - System.printString("Joined " + i + "\n"); } // print out the result of the matrix multiply + System.printString("Starting\n"); System.printString("Matrix Product c =\n"); int val; atomic { -- 2.34.1