working up mlp system
[IRC.git] / Robust / src / Main / Main.java
index 340df9d83c74f66365996ec0f47e2b7a37cf28a6..146428666dc02ab02e9821ce59d1035b260834fb 100644 (file)
@@ -175,13 +175,16 @@ public class Main {
        state.INSTRUCTIONFAILURE=true;
       else if (option.equals("-abcclose"))
        state.ARRAYBOUNDARYCHECK=false;
+
       else if (option.equals("-mlp")) {
-       state.MLP=true;
-       state.OWNERSHIP=true;
+       state.MLP            = true;
+       state.OWNERSHIP      = true;
+       state.MLP_NUMCORES   = Integer.parseInt( args[++i] );
+       state.MLP_MAXSESEAGE = Integer.parseInt( args[++i] );
+
       } else if (option.equals("-mlpdebug")) {
-       state.MLP=true;
        state.MLPDEBUG=true;
-       state.OWNERSHIP=true;
+
       } else if (option.equals("-help")) {
        System.out.println("-classlibrary classlibrarydirectory -- directory where classlibrary is located");
        System.out.println("-selfloop task -- this task doesn't self loop its parameters forever");
@@ -212,8 +215,8 @@ public class Main {
        System.out.println("-optional -- enable optional arguments");
        System.out.println("-abcclose close the array boundary check");
        System.out.println("-scheduling do task scheduling");
-       System.out.println("-mlp build mlp code");
-       System.out.println("-mlp build mlp code, report progress and interim results");
+       System.out.println("-mlp <num cores> <max sese age> build mlp code");
+       System.out.println("-mlpdebug if mlp, report progress and interim results");
        System.out.println("-multicore generate multi-core version binary");
        System.out.println("-numcore set the number of cores (should be used together with -multicore), defaultly set as 1");
        System.out.println("-interrupt generate raw version binary with interruption (should be used togethere with -raw)");