aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/minisat
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-04-10 23:17:14 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-04-10 23:17:14 +0200
commit1f6cb381b91fc40d1e6b7c6ae1f022077f6091de (patch)
tree3795bfb60eb28dfa62430d600986eb12fca25eb1 /test/monniaux/minisat
parenta3d856e24b2ac6577678a1535e4d15316cf0755c (diff)
downloadcompcert-kvx-1f6cb381b91fc40d1e6b7c6ae1f022077f6091de.tar.gz
compcert-kvx-1f6cb381b91fc40d1e6b7c6ae1f022077f6091de.zip
for running benchmarks on marte
Diffstat (limited to 'test/monniaux/minisat')
-rw-r--r--test/monniaux/minisat/Makefile.on_marte16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/monniaux/minisat/Makefile.on_marte b/test/monniaux/minisat/Makefile.on_marte
new file mode 100644
index 00000000..af7b9145
--- /dev/null
+++ b/test/monniaux/minisat/Makefile.on_marte
@@ -0,0 +1,16 @@
+EXE=minisat.ccomp.exe minisat.ccomp.trace-linearize.exe \
+ minisat.gcc-O3.exe \
+ minisat.ccomp.profiled.exe minisat.gcc-O3.profiled.exe
+
+LOG=$(EXE:.exe=.dat)
+
+all: $(LOG)
+
+%.log : %.exe
+ rm -f $@
+ for i in `seq 1 1000` ; do ./$< sudoku.sat >> $@; done
+
+%.dat : %.log
+ grep 'time cycles: ' $< | sed -e 's/time cycles: //' | awk '{ total += $$1; count++ } END { print total/count }' > $@
+
+.SECONDARY: