Skip to content

Commit

Permalink
provide mechanism to increase hexagon_benchmark iterations: ITERATION…
Browse files Browse the repository at this point in the history
…S ?= 10
  • Loading branch information
Ron Lieberman committed Jul 14, 2017
1 parent cf96af8 commit b56facb
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 b56facb

Please sign in to comment.