Skip to content

Commit

Permalink
Run benchmarks on Pixel-8-Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
mariecwhite committed Dec 8, 2023
1 parent 14533a8 commit f5b273f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/run_mobile_comparative_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
schedule:
# Scheduled to run at 09:00 UTC and 21:00 UTC.
- cron: '0 09,21 * * *'
pull_request:

concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
Expand Down Expand Up @@ -315,7 +316,7 @@ jobs:
- os-family=Linux
env:
BENCHMARK_ARTIFACTS_DIR: android-benchmark-artifacts-dir
TARGET_DEVICE: pixel-6-pro
TARGET_DEVICE: pixel-8-pro
IREE_INSTALL_DIR: ${{ needs.build_iree.outputs.iree-install-dir }}
IREE_INSTALL_DIR_ARCHIVE: ${{ needs.build_iree.outputs.iree-install-dir-archive }}
IREE_INSTALL_DIR_GCS_ARTIFACT: ${{ needs.build_iree.outputs.iree-install-dir-gcs-artifact }}
Expand Down Expand Up @@ -364,17 +365,17 @@ jobs:
echo "benchmark-artifacts-dir-gcs-artifact=${BENCHMARK_ARTIFACTS_DIR_GCS_ARTIFACT}" >> "${GITHUB_OUTPUT}"
benchmark_on_pixel-6-pro:
benchmark_on_pixel-8-pro:
needs: [setup, build_iree, compile_models_for_android, build_tflite]
runs-on:
- self-hosted # must come first
- runner-group=${{ needs.setup.outputs.runner-group }}
- environment=prod
- machine-type=pixel-6-pro
- machine-type=pixel-8-pro
env:
BENCHMARK_GCS_DIR: ${{ needs.setup.outputs.benchmark-gcs-dir }}
RESULTS_DIR: results-dir
TARGET_DEVICE: pixel-6-pro
TARGET_DEVICE: pixel-8-pro
IREE_ANDROID_TOOLS_DIR: ${{ needs.build_iree.outputs.iree-android-tools-dir }}
IREE_ANDROID_TOOLS_DIR_ARCHIVE: ${{ needs.build_iree.outputs.iree-android-tools-dir-archive }}
IREE_ANDROID_TOOLS_DIR_GCS_ARTIFACT: ${{ needs.build_iree.outputs.iree-android-tools-dir-gcs-artifact }}
Expand Down
2 changes: 1 addition & 1 deletion experimental/iree/benchmark_iree_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fi
"${TD}/../../comparative_benchmark/scripts/create_results_json.sh" "${OUTPUT_PATH}"

# A num_threads to cpu_ids map. We use the biggest cores for each configuration.
THREAD_CONFIG="{1: '0', 4: '0,1,2,3'}"
THREAD_CONFIG="{1: '0', 4: '1,2,3,4', 5: '0,1,2,3,4'}"

"${TD}/run_benchmarks.py" \
--target_device="${TARGET_DEVICE}" \
Expand Down
2 changes: 2 additions & 0 deletions experimental/iree/compile_workloads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ if [ "${TARGET_DEVICE_NAME}" = "c2-standard-60" ]; then
BENCHMARK_NAMES=("${CASCADE_LAKE_BENCHMARKS[@]}")
elif [ "${TARGET_DEVICE_NAME}" = "pixel-6-pro" ]; then
BENCHMARK_NAMES=("${ANDROID_BENCHMARKS[@]}")
elif [ "${TARGET_DEVICE_NAME}" = "pixel-8-pro" ]; then
BENCHMARK_NAMES=("${ANDROID_BENCHMARKS[@]}")
else
echo "Unsupported target device ${TARGET_DEVICE}."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion experimental/tflite/benchmark_tflite_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ declare -a BENCHMARK_NAMES=(

# Thread-to-taskset config. Here we run 1 thread on the largest core, and 4 threads on the 4 largest (2 big, 2 medium) cores.
# Assumes the benchmarks run on Pixel-6-Pro.
THREAD_CONFIG="{1: '80', 4: 'F0'}"
THREAD_CONFIG="{1: '80', 4: 'F0', 5: '1F0'}"
ITERATIONS=5

for benchmark_name in "${BENCHMARK_NAMES[@]}"; do
Expand Down

0 comments on commit f5b273f

Please sign in to comment.