Skip to content

Commit 08afd31

Browse files
committed
CPU scaling
1 parent 946b9d8 commit 08afd31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ phases:
125125
adb -s $DEVICEFARM_DEVICE_UDID shell am start -W -n org.pytorch.minibench/.BenchmarkActivity \
126126
--es "model_dir" "/data/local/tmp/minibench"
127127
fi
128+
adb -s $DEVICEFARM_DEVICE_UDID shell "echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor"
128129
adb -s $DEVICEFARM_DEVICE_UDID shell /data/local/tmp/minibench/xnn_executor_runner --model_path /data/local/tmp/minibench/*.pte --prof_result_path /data/local/tmp/prof_result.bin --num_warmup_iters 10
129130
adb -s $DEVICEFARM_DEVICE_UDID pull /data/local/tmp/prof_result.bin
130131
pip install prettytable

0 commit comments

Comments
 (0)