Permalink
Browse files

benchmarks: makefile improvement for C data generation.

  • Loading branch information...
1 parent 3dfea87 commit 4b806442430bac111079052c8349822d4514b9a1 @StefanKarpinski StefanKarpinski committed Apr 25, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 test/perf/Makefile
View
15 test/perf/Makefile
@@ -6,12 +6,15 @@ default: benchmarks.html
bin/perf%: perf.cpp
$(CXX) -O$* $< -o $@ $(JULIAHOME)/external/openblas-v0.1.0/libopenblas.a
-benchmarks/c.csv: bin/perf0 bin/perf1 bin/perf2 bin/perf3
- rm -f $@
- for t in 1 2 3 4 5; do bin/perf0; done >>$@
- for t in 1 2 3 4 5; do bin/perf1; done >>$@
- for t in 1 2 3 4 5; do bin/perf2; done >>$@
- for t in 1 2 3 4 5; do bin/perf3; done >>$@
+benchmarks/c.csv: \
+ benchmarks/c0.csv \
+ benchmarks/c1.csv \
+ benchmarks/c2.csv \
+ benchmarks/c3.csv
+ cat $^ > $@
+
+benchmarks/c%.csv: bin/perf%
+ for t in 1 2 3 4 5; do $<; done >$@
benchmarks/julia.csv: perf.jl
for t in 1 2 3 4 5; do ../../julia $<; done >$@

0 comments on commit 4b80644

Please sign in to comment.