test
authorjihoonl <jihoonl>
Tue, 5 Jan 2010 17:09:43 +0000 (17:09 +0000)
committerjihoonl <jihoonl>
Tue, 5 Jan 2010 17:09:43 +0000 (17:09 +0000)
Robust/src/Benchmarks/Recovery/MatrixMultiply/MatrixMultiplyN.java
Robust/src/Benchmarks/Recovery/MatrixMultiply/dstm.conf

index 22843b25a8babed7afabd5c98adecf3a11d20ec1..f4b8d871af4b19b81137466765e2485244026d86 100644 (file)
@@ -14,7 +14,6 @@ public class MatrixMultiply extends Task {
 
        public void init() {
                todoList = global new Queue();
-               doneList = global new Queue();
 
                fillTodoList();
        }
@@ -105,13 +104,10 @@ public class MatrixMultiply extends Task {
   }
 
        public void done(Object work) {
-               atomic {
-                       ((Queue)doneList).push(work);
-               }
        }
 
   public static void main(String[] args) {
-               int NUM_THREADS = 4;
+               int NUM_THREADS=4;
                int SIZE = 1600;
     int i,j;
                Work[] works;
@@ -121,12 +117,21 @@ public class MatrixMultiply extends Task {
 
                if (args.length > 0) {
                        NUM_THREADS = Integer.parseInt(args[0]);
+      SIZE = Integer.parseInt(args[1]);
                }
+    else {
+      System.out.println("usage: ./MatrixMultiply.bin master <num_threads> <size of matrix>");
+    }
 
-               int[] mid = new int[NUM_THREADS];
-               mid[0] = (128<<24)|(195<<16)|(180<<8)|21; //dc1
-               mid[1] = (128<<24)|(195<<16)|(180<<8)|24; //dc2
-               mid[2] = (128<<24)|(195<<16)|(180<<8)|26; //dc3
+               int[] mid = new int[8];
+               mid[0] = (128<<24)|(195<<16)|(136<<8)|162; //dc1
+               mid[1] = (128<<24)|(195<<16)|(136<<8)|163; //dc2
+               mid[2] = (128<<24)|(195<<16)|(136<<8)|164; //dc3
+               mid[3] = (128<<24)|(195<<16)|(136<<8)|165; //dc4
+               mid[4] = (128<<24)|(195<<16)|(136<<8)|166; //dc5
+               mid[5] = (128<<24)|(195<<16)|(136<<8)|167; //dc6
+               mid[6] = (128<<24)|(195<<16)|(136<<8)|168; //dc7
+               mid[7] = (128<<24)|(195<<16)|(136<<8)|169; //dc8
 
                atomic {
                        matrix = global new MMul(SIZE, SIZE, SIZE);
index 1ecc1322080b2ed2cd7d7895048bee52b28a12f1..a57cf4bdd16eab5c5e2b027de71f3758d9e3240f 100644 (file)
@@ -1,9 +1,9 @@
-#128.195.180.21
-#128.195.180.24
-#128.195.180.26
 128.195.136.162
 128.195.136.163
 128.195.136.164
 128.195.136.165
 128.195.136.166
 128.195.136.167
+128.195.136.168
+128.195.136.169
+