compile: make
-run usage: ./Game.bin -N <number of threads>
+run usage: ./Game.bin <number of threads>
# recovery directory has the source code for a multi threaded execution with
# enabled
compile: make
-run usage: ./Game.bin master -N <number of threads> (on master machine)
+run usage: ./Game.bin master <number of threads> (on master machine)
and ./Game.bin (on slaves)
**/
public static void parseCmdLine(String args[], RainForest rf) {
int i = 0;
+ rf.numThreads = new Integer(args[0]).intValue();
String arg;
while(i < args.length && args[i].startsWith("-")) {
arg = args[i++];
//check options
- if(arg.equals("-N")) {
- if(i < args.length) {
- rf.numThreads = new Integer(args[i++]).intValue();
- }
- } else if(arg.equals("-h")) {
+ if(arg.equals("-h")) {
rf.usage();
}
}
**/
public static void parseCmdLine(String args[], RainForest rf) {
int i = 0;
+ rf.numThreads = new Integer(args[0]).intValue();
String arg;
while(i < args.length && args[i].startsWith("-")) {
arg = args[i++];
//check options
- if(arg.equals("-N")) {
- if(i < args.length) {
- rf.numThreads = new Integer(args[i++]).intValue();
- }
- } else if(arg.equals("-h")) {
+ if(arg.equals("-h")) {
rf.usage();
}
}
AStarPathFinder.java \
../../../../ClassLibrary/JavaDSM/Thread.java
-FLAGS1=-dsm -recoverystats -recovery -debug -nooptimize -mainclass ${MAINCLASS}
+FLAGS1=-dsm -recoverystats -recovery -optimize -mainclass ${MAINCLASS}
default:
cpp ${MAINCLASS}.java > tmp1${MAINCLASS}.java