Skip to content

Commit 0ee2f49

Browse files
authored
add support for Qualcomm QCM6490 (pytorch#16331)
### Summary This PR adds support for Qualcomm QCM6490, which has been discussed in issue pytorch#7356. ### Fixes Fixes pytorch#7356. ### Test plan The changes in this PR have been tested with the [official Llama example](https://github.com/pytorch/executorch/blob/v0.7.0/examples/qualcomm/oss_scripts/llama/runner/runner.cpp).
1 parent 050e2ee commit 0ee2f49

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎backends/qualcomm/serialization/qc_compiler_spec.fbs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ enum QcomChipset: int {
5050
SAR2230P = 95,
5151
SA8255 = 52,
5252
SW6100 = 96,
53+
QCM6490 = 93,
5354
}
5455

5556
/// Indicate the information of the specified SoC.

‎backends/qualcomm/serialization/qc_schema.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class QcomChipset(IntEnum):
5656
SAR2230P = 95 # v81
5757
SA8255 = 52 # v73
5858
SW6100 = 96 # v81
59+
QCM6490 = 93 # v68
5960

6061

6162
@dataclass
@@ -82,6 +83,7 @@ class SocInfo:
8283
QcomChipset.QCS9100: SocInfo(QcomChipset.QCS9100, HtpInfo(HtpArch.V73, 8)),
8384
QcomChipset.SAR2230P: SocInfo(QcomChipset.SAR2230P, HtpInfo(HtpArch.V81, 4)),
8485
QcomChipset.SW6100: SocInfo(QcomChipset.SW6100, HtpInfo(HtpArch.V81, 4)),
86+
QcomChipset.QCM6490: SocInfo(QcomChipset.QCM6490, HtpInfo(HtpArch.V68, 2)),
8587
}
8688

8789

‎backends/qualcomm/utils/utils.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ def get_soc_to_arch_map():
11451145
"QCS9100": HtpArch.V73,
11461146
"SAR2230P": HtpArch.V81,
11471147
"SW6100": HtpArch.V81,
1148+
"QCM6490": HtpArch.V68,
11481149
}
11491150

11501151

@@ -1167,6 +1168,7 @@ def get_soc_to_chipset_map():
11671168
"QCS9100": QcomChipset.QCS9100,
11681169
"SAR2230P": QcomChipset.SAR2230P,
11691170
"SW6100": QcomChipset.SW6100,
1171+
"QCM6490": QcomChipset.QCM6490,
11701172
}
11711173

11721174

‎docs/source/backends-qualcomm.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ You will need an Android / Linux device with adb-connected running on one of bel
7171
- SXR1230P (Linux Embedded)
7272
- SXR2230P
7373
- SXR2330P
74+
- QCM6490
7475

7576
This example is verified with SM8550 and SM8450.
7677

0 commit comments

Comments
 (0)