From d204f842ab4abcf1a551110d7de96afca9841f28 Mon Sep 17 00:00:00 2001 From: adash Date: Fri, 16 Apr 2010 00:24:20 +0000 Subject: [PATCH] print stats in matrix multiply --- .../Recovery/MatrixMultiply/recovery/Worker.java | 6 +++++- .../Benchmarks/Recovery/MatrixMultiply/recovery/makefile | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/Worker.java b/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/Worker.java index f021f3a3..526dcb11 100644 --- a/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/Worker.java +++ b/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/Worker.java @@ -57,7 +57,11 @@ public class Worker extends Thread { } } fi = System.currentTimeMillis(); - System.out.println("\n\nDone - Time Elapse : " + (double)((fi-st)/1000) +"\n\n"); + System.printString("\n\nDone - Time Elapse : " + (double)((fi-st)/1000) +"\n\n"); + RecoveryStat.printRecoveryStat(); + while(true) { + sleep(100000); + } } public static native void printRecoveryStat(); } diff --git a/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/makefile b/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/makefile index f88ee890..18b2a1b5 100644 --- a/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/makefile +++ b/Robust/src/Benchmarks/Recovery/MatrixMultiply/recovery/makefile @@ -3,10 +3,11 @@ SRC1=${MAINCLASS}.java \ GlobalQueue.java \ TaskSet.java \ Task.java \ - Worker.java + Worker.java \ + ../../../../ClassLibrary/JavaDSM/RecoveryStat.java -FLAGS=-recovery -recoverystats -dsm -dsmtask -transstats -prefetch -dsmcaching -32bit -optimize -mainclass ${MAINCLASS} -excprefetch Task.isTodoListEmpty -excprefetch MatrixMultiply.output -excprefetch GlobalQueue.push -excprefetch MatrixMultiply.fillTodoList -excprefetch GlobalQueue.pop -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -excprefetch Work.checkCurrentWorkList -excprefetch MMul.getSum -excprefetch Task.grabTask -excprefetch Worker.Worker -excprefetch Task.dequeueTask -trueprob 0.96 -DSMFLAGS= -dsm -dsmtask -transstats -prefetch -dsmcaching -32bit -optimize -mainclass ${MAINCLASS} -excprefetch Task.isTodoListEmpty -excprefetch MatrixMultiply.output -excprefetch GlobalQueue.push -excprefetch MatrixMultiply.fillTodoList -excprefetch GlobalQueue.pop -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -excprefetch Work.checkCurrentWorkList -excprefetch MMul.getSum -excprefetch Task.grabTask +FLAGS=-recovery -recoverystats -transstats -dsm -dsmtask -prefetch -dsmcaching -32bit -debug -optimize -mainclass ${MAINCLASS} -excprefetch Task.isTodoListEmpty -excprefetch MatrixMultiply.output -excprefetch GlobalQueue.push -excprefetch MatrixMultiply.fillTodoList -excprefetch GlobalQueue.pop -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -excprefetch Work.checkCurrentWorkList -excprefetch MMul.getSum -excprefetch Task.grabTask -excprefetch Worker.Worker -excprefetch Task.dequeueTask -trueprob 0.96 +DSMFLAGS= -dsm -dsmtask -transstats -dsmcaching -32bit -optimize -mainclass ${MAINCLASS} -excprefetch Task.isTodoListEmpty -excprefetch MatrixMultiply.output -excprefetch GlobalQueue.push -excprefetch MatrixMultiply.fillTodoList -excprefetch GlobalQueue.pop -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -excprefetch Work.checkCurrentWorkList -excprefetch MMul.getSum -excprefetch Task.grabTask RECOVERYFLAGS=-recovery -dsm -dsmtask -nooptimize -debug -mainclass ${MAINCLASS} default: -- 2.34.1