Skip to content

Commit

Permalink
Merge pull request halide#2198 from halide/hex-bmarks-iterations
Browse files Browse the repository at this point in the history
provide mechanism to increase hexagon_benchmark iterations: ITERATION…
  • Loading branch information
dsharletg authored Jul 14, 2017
2 parents 0b4cb64 + b56facb commit 5a6b3ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/hexagon_benchmarks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ BIN ?= bin

FILTERS ?= conv3x3a16 dilate3x3 median3x3 gaussian5x5 sobel conv3x3a32

ITERATIONS ?= 10

OBJS = $(patsubst %,$(BIN)/\%/%_hvx64.o, $(FILTERS))
OBJS += $(patsubst %,$(BIN)/\%/%_hvx128.o, $(FILTERS))
OBJS += $(patsubst %,$(BIN)/\%/%_cpu.o, $(FILTERS))
Expand Down Expand Up @@ -121,10 +123,10 @@ $(BIN)/process-%: process.cpp $(BIN)/%/filters.a process.h
run-%-android: $(BIN)/process-%-android
adb push $(BIN)/process-$*-android /data/
adb shell chmod +x /data/process-$*-android
adb shell /data/process-$*-android -n 10
adb shell /data/process-$*-android -n $(ITERATIONS)

run-host: $(BIN)/process-host
$(BIN)/process-host -n 10
$(BIN)/process-host -n $(ITERATIONS)

clean:
rm -rf $(BIN)

0 comments on commit 5a6b3ec

Please sign in to comment.