edits
authorPeizhao Ou <peizhaoo@uci.edu>
Wed, 7 Dec 2016 21:20:02 +0000 (13:20 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Wed, 7 Dec 2016 21:20:02 +0000 (13:20 -0800)
generate.sh
src/edu/uci/eecs/codeGenerator/CodeGenerator.java

index 5727f3c..38ec8b2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-BENCH=(blocking-queue-example ms-queue linuxrwlocks mcs-lock \
-    chase-lev-deque-bugfix chase-lev-deque spsc-bugfix mpmp-queue ticket-lock \
+BENCH=(ms-queue linuxrwlocks mcs-lock \
+    chase-lev-deque-bugfix spsc-bugfix mpmc-queue ticket-lock \
     concurrent-hashmap seqlock read-copy-update)
 
 ClassPath=$(dirname ${BASH_SOURCE[0]})/classes
@@ -14,4 +14,6 @@ Class=edu/uci/eecs/codeGenerator/CodeGenerator
 BenchDir=../benchmarks
 GenerateDir=../test-cdsspec
 
+mkdir -p $GenerateDir
+
 java -cp $ClassPath $Class $BenchDir $GenerateDir ${BENCH[*]}
index e727f0b..ca6401d 100644 (file)
@@ -346,11 +346,11 @@ public class CodeGenerator {
                
                // String[] dirNames = args;
                
-//             String[] dirNames = new String[args.length - 2];
-//             for (int i = 0; i < args.length - 2; i++) {
-//                     dirNames[i] = args[i + 2];
-//             }
-               String[] dirNames = Environment.Benchmarks;
+               String[] dirNames = new String[args.length - 2];
+               for (int i = 0; i < args.length - 2; i++) {
+                       dirNames[i] = args[i + 2];
+               }
+//             String[] dirNames = Environment.Benchmarks;
 
                for (int i = 0; i < dirNames.length; i++) {
                        String dirName = dirNames[i];