From: jihoonl Date: Mon, 11 Jan 2010 10:55:52 +0000 (+0000) Subject: changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=74e6649bd194e941e30c2530edb457ab0e9d7a6f;p=IRC.git changes --- diff --git a/Robust/src/Benchmarks/Recovery/MatrixMultiply/MatrixMultiplyN.java b/Robust/src/Benchmarks/Recovery/MatrixMultiply/MatrixMultiplyN.java index fdc24eba..dc956d5d 100644 --- a/Robust/src/Benchmarks/Recovery/MatrixMultiply/MatrixMultiplyN.java +++ b/Robust/src/Benchmarks/Recovery/MatrixMultiply/MatrixMultiplyN.java @@ -148,6 +148,9 @@ public class MatrixMultiply extends Task { } System.out.println("Finished to createObjects"); + long st = System.currentTimeMillis(); + long fi; + Work tmp; for (i = 0; i < NUM_THREADS; i++) { atomic { @@ -162,7 +165,9 @@ public class MatrixMultiply extends Task { } tmp.join(); } - + fi = System.currentTimeMillis(); + + System.out.println("Time Elapse = " + (double)((fi-st)/1000)); System.printString("Finished\n"); } } diff --git a/Robust/src/Benchmarks/Recovery/runjava.sh b/Robust/src/Benchmarks/Recovery/runjava.sh index 4d197ccf..a3707421 100755 --- a/Robust/src/Benchmarks/Recovery/runjava.sh +++ b/Robust/src/Benchmarks/Recovery/runjava.sh @@ -38,12 +38,10 @@ function runjava { while [ $k -gt 1 ]; do echo "SSH into dc-${k}" - echo "ssh dc-${k} 'cd' $DIR'; ./$BM_NAME.bin'" ssh dc-${k} 'cd '$DIR'; ./'$BM_NAME'.bin' & k=`expr $k - 1` done echo "Running master machine ... " - echo "ssh dc-1 'cd '$DIR'; ./$BM_NAME.bin master $NUM_MACHINE $BM_ARGS" ssh dc-1 'cd '$DIR'; ./'$BM_NAME'.bin master '$NUM_MACHINE $BM_ARGS sleep 1 ;