Skip to content

Commit

Permalink
Add kmeans benchmark to check rule
Browse files Browse the repository at this point in the history
Expected to fail CI for clang, due to missing -ldl.  Also fails
for earlier versions of g++ (not covered by CI).
  • Loading branch information
kramermt committed Oct 11, 2020
1 parent 05d5ed7 commit b0852ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -19,3 +19,6 @@ install:: all

bench bench_small bench_large::
@$(MAKE) -C benchmarks $@

check::
@$(MAKE) -C benchmarks check
10 changes: 10 additions & 0 deletions benchmarks/Makefile
Expand Up @@ -4,3 +4,13 @@ DIRS := histogram kmeans linear_regression matrix_multiply \
sqlite-modified toy word_count

include $(ROOT)/common.mk

check::
@$(MAKE) -C kmeans
@$(RM) -f profile.coz
../coz run --- kmeans/kmeans
@grep -q "time=" profile.coz || { echo failure: valid profile.coz not generated; exit 1; }
@grep -q "throughput-point" profile.coz || { echo failure: throughput-point not found in profile; exit 1; }
@grep -q -P "samples\tlocation=" profile.coz || { echo failure: samples not found in profile; exit 1; }
@echo success: benchmark generated valid profile.coz
@$(RM) -f profile.coz

0 comments on commit b0852ef

Please sign in to comment.