add makefile
authoradash <adash>
Wed, 3 Jun 2009 21:11:23 +0000 (21:11 +0000)
committeradash <adash>
Wed, 3 Jun 2009 21:11:23 +0000 (21:11 +0000)
Robust/src/Benchmarks/SingleTM/SSCA2/extractLines [new file with mode: 0755]
Robust/src/Benchmarks/SingleTM/SSCA2/makefile [new file with mode: 0644]

diff --git a/Robust/src/Benchmarks/SingleTM/SSCA2/extractLines b/Robust/src/Benchmarks/SingleTM/SSCA2/extractLines
new file mode 100755 (executable)
index 0000000..3d2e57d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+lines=$(grep -n "#" tmp1SSCA2.java | cut -d: -f1 | sed '1q')
+sed '/^#/d' tmp1SSCA2.java > tmpSSCA2.java
diff --git a/Robust/src/Benchmarks/SingleTM/SSCA2/makefile b/Robust/src/Benchmarks/SingleTM/SSCA2/makefile
new file mode 100644 (file)
index 0000000..f299789
--- /dev/null
@@ -0,0 +1,35 @@
+MAINCLASS=SSCA2
+SRC=tmp${MAINCLASS}.java \
+       Alg_Radix_Smp.java \
+       ComputeGraph.java \
+    CreatePartition.java \
+    Edge.java \
+    GenScalData.java \
+       GetStartLists.java \
+       GetUserParameters.java \
+       Globals.java \
+       Graph.java \
+       GraphSDG.java \
+       LocalStartStop.java \
+       VList.java \
+       ../common/Random.java \
+    ../../../ClassLibrary/JavaSTM/Barrier.java
+FLAGS=-mainclass ${MAINCLASS} -singleTM -optimize -debug -dcopts -stmstats -fastmemcpy -transstats -joptimize
+# -joptimize
+
+default:
+#      cpp -DUSE_PARALLEL_DATA_GENERATION ${MAINCLASS}.java > tmp1${MAINCLASS}.java
+#      ./extractLines
+#      ../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}
+       cpp -DENABLE_KERNEL1 ${MAINCLASS}.java > tmp1${MAINCLASS}.java
+       ./extractLines
+       ../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}
+#      cpp -DENABLE_KERNEL2 -DENABLE_KERNEL3 ${MAINCLASS}.java > tmp1${MAINCLASS}.java
+#      ./extractLines
+#      ../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}
+
+clean:
+       rm tmp1SSCA2.java
+       rm tmpSSCA2.java
+       rm -rf tmpbuilddirectory
+       rm *.bin