Skip to content

Commit 9062a09

Browse files
author
Guang Yang
committed
Make QNN chipset with the device pool
1 parent ae05ed8 commit 9062a09

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.ci/scripts/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ test_model_with_qnn() {
175175
EXPORTED_MODEL_NAME=vit_qnn.pte
176176
fi
177177

178-
"${PYTHON_EXECUTABLE}" -m examples.qualcomm.scripts.${EXPORT_SCRIPT} -b ${CMAKE_OUTPUT_DIR} -m SM8550 --compile_only
178+
# Use SM8450 for S22, SM8550 for S23, and SM8560 for S24
179+
QNN_CHIPSET=SM8450
180+
181+
"${PYTHON_EXECUTABLE}" -m examples.qualcomm.scripts.${EXPORT_SCRIPT} -b ${CMAKE_OUTPUT_DIR} -m ${QNN_CHIPSET} --compile_only
179182
EXPORTED_MODEL=./${EXPORT_SCRIPT}/${EXPORTED_MODEL_NAME}
180183
}
181184

.github/workflows/android-perf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
description: Target devices to run benchmark
1616
required: false
1717
type: string
18-
default: samsung_galaxy_s2x
18+
default: samsung_galaxy_s22
1919
delegates:
2020
description: Backend delegates
2121
required: false
@@ -45,7 +45,7 @@ on:
4545
description: Target devices to run benchmark
4646
required: false
4747
type: string
48-
default: samsung_galaxy_s2x
48+
default: samsung_galaxy_s22
4949
delegates:
5050
description: Backend delegates
5151
required: false
@@ -85,7 +85,7 @@ jobs:
8585
# during scheduled runs and to provide flexibility for different defaults between
8686
# on-demand and periodic benchmarking.
8787
CRON_DEFAULT_MODELS: "stories110M,dl3,mv3,mv2,ic4,ic3,vit"
88-
CRON_DEFAULT_DEVICES: "samsung_galaxy_s2x"
88+
CRON_DEFAULT_DEVICES: "samsung_galaxy_s22"
8989
CRON_DEFAULT_DELEGATES: "xnnpack,qnn"
9090
run: |
9191
set -ex
@@ -104,7 +104,7 @@ jobs:
104104
105105
# Mapping devices to their corresponding device-pool-arn
106106
declare -A DEVICE_POOL_ARNS
107-
DEVICE_POOL_ARNS[samsung_galaxy_s2x]="arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa"
107+
DEVICE_POOL_ARNS[samsung_galaxy_s22]="arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa"
108108
109109
# Resolve device names with their corresponding ARNs
110110
if [[ ! $(echo "$DEVICES" | jq empty 2>/dev/null) ]]; then

extension/llm/export/partitioner_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_qnn_partitioner(
140140

141141
return QnnPartitioner( # pyre-fixme[16]
142142
generate_qnn_executorch_compiler_spec( # pyre-fixme[16]
143-
soc_model=QcomChipset.SM8650, # default to SM8650 # pyre-fixme[16]
143+
soc_model=QcomChipset.SM8450, # default to SM8450 # pyre-fixme[16]
144144
# pyre-fixme[16]
145145
backend_options=generate_htp_compiler_spec(
146146
use_fp16=use_fp16,

0 commit comments

Comments
 (0)