Skip to content

Commit 9c568d7

Browse files
authored
Qualcomm AI Engine Direct - supprot SAR2230P (#15437)
### Summary - add soc SAR2230P ### Test plan ```bash cd $EXECUTORCH_ROOT/examples python qualcomm/scripts/export_example.py --model_name mul --output_folder . --generate_etrecord --soc SAR2230P -q ptq ```
1 parent e3b7eda commit 9c568d7

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

backends/qualcomm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Please check `generate_qnn_executorch_compiler_spec()` in
2828
- SXR2230P
2929
- SXR2330P
3030
- QCS9100
31+
- SAR2230P
3132

3233
### Adding more supported Chipset
3334
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.

backends/qualcomm/serialization/qc_compiler_spec.fbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enum HtpArch: int {
1818
V73 = 73,
1919
V75 = 75,
2020
V79 = 79,
21+
V81 = 81,
2122
}
2223

2324
table HtpInfo {
@@ -44,6 +45,7 @@ enum QcomChipset: int {
4445
SXR2230P = 53,
4546
SXR2330P = 75,
4647
QCS9100 = 77,
48+
SAR2230P = 95,
4749
}
4850

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

backends/qualcomm/serialization/qc_schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class HtpArch(IntEnum):
2727
V73 = 73
2828
V75 = 75
2929
V79 = 79
30+
V81 = 81
3031

3132

3233
@dataclass
@@ -50,6 +51,7 @@ class QcomChipset(IntEnum):
5051
SXR2230P = 53 # v69
5152
SXR2330P = 75 # v79
5253
QCS9100 = 77 # v73
54+
SAR2230P = 95 # v81
5355

5456

5557
@dataclass
@@ -71,6 +73,7 @@ class SocInfo:
7173
QcomChipset.SXR2230P: SocInfo(QcomChipset.SXR2230P, HtpInfo(HtpArch.V69, 8)),
7274
QcomChipset.SXR2330P: SocInfo(QcomChipset.SXR2330P, HtpInfo(HtpArch.V79, 8)),
7375
QcomChipset.QCS9100: SocInfo(QcomChipset.QCS9100, HtpInfo(HtpArch.V73, 8)),
76+
QcomChipset.SAR2230P: SocInfo(QcomChipset.SAR2230P, HtpInfo(HtpArch.V81, 4)),
7477
}
7578

7679

backends/qualcomm/utils/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ def get_soc_to_arch_map():
11001100
"SXR2230P": HtpArch.V69,
11011101
"SXR2330P": HtpArch.V79,
11021102
"QCS9100": HtpArch.V73,
1103+
"SAR2230P": HtpArch.V81,
11031104
}
11041105

11051106

@@ -1117,6 +1118,7 @@ def get_soc_to_chipset_map():
11171118
"SXR2230P": QcomChipset.SXR2230P,
11181119
"SXR2330P": QcomChipset.SXR2330P,
11191120
"QCS9100": QcomChipset.QCS9100,
1121+
"SAR2230P": QcomChipset.SAR2230P,
11201122
}
11211123

11221124

0 commit comments

Comments
 (0)