Skip to content

Commit 0102ef0

Browse files
Add SM8635 (Snapdragon 8s Gen 3) and SM8735 (Snapdragon 8s Gen 4) chipset support
Agent-Logs-Url: https://github.com/pytorch/executorch/sessions/3e9acd79-6c85-4c6c-860f-e364207f8e23 Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
1 parent 7ccc62a commit 0102ef0

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

backends/qualcomm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Please check `generate_qnn_executorch_compiler_spec()` in
1919
The supported Qualcomm SoCs are detailed in `QcomChipset`. Please navigate to [qc_schema.py](serialization/qc_schema.py).
2020

2121
### Adding more supported Chipset
22-
Currently, users cannot add additional chipset models because the chipset ID is not accessible to community users. If you have specific chipset models you wish to add, please contact one of the authors in the `Code Reviews` section at the bottom of this page.
22+
The SoC model integer value needed to add new chipsets can be found in the QNN AI Engine Direct SDK documentation under "Supported Snapdragon Devices". The SoC model value is listed as "SOC Model" in that table and must match `QNN_SOC_MODEL_*` constants from the SDK's `QnnTypes.h`.
2323

2424
### Supported Inference Type
2525
- Quantized

backends/qualcomm/serialization/qc_compiler_spec.fbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ enum QcomChipset: int {
5151
SM8450 = 36,
5252
SM8475 = 42,
5353
SM8550 = 43,
54+
SM8635 = 68,
5455
SM8650 = 57,
56+
SM8735 = 85,
5557
SM8750 = 69,
5658
SM8850 = 87,
5759
SSG2115P = 46,

backends/qualcomm/serialization/qc_schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ class QcomChipset(IntEnum):
5858
SM8450 = 36 # v69
5959
SM8475 = 42 # v69
6060
SM8550 = 43 # v73
61+
SM8635 = 68 # v73
6162
SM8650 = 57 # v75
63+
SM8735 = 85 # v79
6264
SM8750 = 69 # v79
6365
SM8850 = 87 # v81
6466
SSG2115P = 46 # v73
@@ -89,7 +91,9 @@ class SocInfo:
8991
QcomChipset.SM8475: SocInfo(QcomChipset.SM8475, HtpInfo(HtpArch.V69, 8)),
9092
QcomChipset.SM8550: SocInfo(QcomChipset.SM8550, HtpInfo(HtpArch.V73, 8)),
9193
QcomChipset.SA8255: SocInfo(QcomChipset.SA8255, HtpInfo(HtpArch.V73, 8)),
94+
QcomChipset.SM8635: SocInfo(QcomChipset.SM8635, HtpInfo(HtpArch.V73, 8)),
9295
QcomChipset.SM8650: SocInfo(QcomChipset.SM8650, HtpInfo(HtpArch.V75, 8)),
96+
QcomChipset.SM8735: SocInfo(QcomChipset.SM8735, HtpInfo(HtpArch.V79, 8)),
9397
QcomChipset.SM8750: SocInfo(QcomChipset.SM8750, HtpInfo(HtpArch.V79, 8)),
9498
QcomChipset.SM8850: SocInfo(
9599
QcomChipset.SM8850, HtpInfo(HtpArch.V81, 8), LpaiInfo(LpaiHardwareVersion.V6)

backends/qualcomm/utils/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,9 @@ def generate_qnn_executorch_compiler_spec( # noqa: C901
11381138
SM8450 (Snapdragon 8 Gen 1)
11391139
SM8475(Snapdragon 8 Gen 1+)
11401140
SM8550(Snapdragon 8 Gen 2)
1141+
SM8635(Snapdragon 8s Gen 3)
11411142
SM8650(Snapdragon 8 Gen 3)
1143+
SM8735(Snapdragon 8s Gen 4)
11421144
SM8750(Snapdragon 8 Elite)
11431145
SM8850(Snapdragon 8 Elite Gen 5)
11441146
backend_options: Options required by different backends.
@@ -1263,7 +1265,9 @@ def get_soc_to_htp_arch_map():
12631265
"SM8475": HtpArch.V69,
12641266
"SM8550": HtpArch.V73,
12651267
"SA8255": HtpArch.V73,
1268+
"SM8635": HtpArch.V73,
12661269
"SM8650": HtpArch.V75,
1270+
"SM8735": HtpArch.V79,
12671271
"SM8750": HtpArch.V79,
12681272
"SM8850": HtpArch.V81,
12691273
"SSG2115P": HtpArch.V73,
@@ -1296,7 +1300,9 @@ def get_soc_to_chipset_map():
12961300
"SM8475": QcomChipset.SM8475,
12971301
"SM8550": QcomChipset.SM8550,
12981302
"SA8255": QcomChipset.SA8255,
1303+
"SM8635": QcomChipset.SM8635,
12991304
"SM8650": QcomChipset.SM8650,
1305+
"SM8735": QcomChipset.SM8735,
13001306
"SM8750": QcomChipset.SM8750,
13011307
"SM8850": QcomChipset.SM8850,
13021308
"SSG2115P": QcomChipset.SSG2115P,

0 commit comments

Comments
 (0)