add new option to specify the directory to output scheduling simulation result
authorjzhou <jzhou>
Mon, 23 Feb 2009 22:45:12 +0000 (22:45 +0000)
committerjzhou <jzhou>
Mon, 23 Feb 2009 22:45:12 +0000 (22:45 +0000)
Robust/src/Benchmarks/Scheduling/JGFMonteCarlo/JGFMonteCarloBench.java
Robust/src/Main/Main.java
Robust/src/buildscript

index 384053cebe35539ca5e19f83adf2b8d903c0f9ec..52d2597526601e9882796840077a9d6545c5c220 100644 (file)
@@ -24,7 +24,7 @@ task t1(StartupObject s{initialstate}) {
     //System.printString("task t1\n");
     
     int datasize = 1000;  //should be times of 2
-    int nruns = 32 * 16;
+    int nruns = 16 * 16;
     int group = 16;
     
     AppDemo ad = new AppDemo(datasize, nruns, group){merge};
index 50b1ffecda185bb44ed8dbcc39ac5c5fd6de54f8..34cc2c73d85aeb9124f404190e2e9be39a2e3df9 100644 (file)
@@ -54,6 +54,8 @@ public class Main {
     Vector sourcefiles=new Vector();
     state.classpath.add(".");
 
+       String outputdir = null;
+
     for(int i=0; i<args.length; i++) {
       String option=args[i];
       if (option.equals("-precise"))
@@ -66,6 +68,8 @@ public class Main {
        state.FASTCHECK=true;
       else if (option.equals("-selfloop"))
        state.selfloops.add(args[++i]);
+         else if (option.equals("-outputdir"))
+       outputdir = args[++i];
       else if (option.equals("-excprefetch"))
        state.excprefetch.add(args[++i]);
       else if (option.equals("-classlibrary"))
index 524824ff44ddc0e722817dae8767367f93e57f85..50f305fdd73490a8fef17e7db2836c6c064a92a5 100755 (executable)
@@ -255,6 +255,10 @@ elif [[ $1 = '-curdir' ]]
 then
 CURDIR=$2
 shift
+elif [[ $1 = '-outputdir' ]]
+then
+JAVAOPTS="$JAVAOPTS -outputdir $2"
+shift
 else
 SRCFILES="$SRCFILES $1"
 fi