Skip to content

Commit e28cb76

Browse files
winskuo-quicfacebook-github-bot
authored andcommitted
Qualcomm AI Engine Direct - Fix push wrong library (#6155)
Summary: - Fix pushing the wrong library. Pull Request resolved: #6155 Reviewed By: kirklandsign Differential Revision: D64220988 Pulled By: cccclai fbshipit-source-id: 377088521250d4ce09a5c2b454e2bf7a0897c264
1 parent 5696b35 commit e28cb76

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

backends/qualcomm/utils/utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
from executorch.backends.qualcomm.builders.qnn_constants import OpContextLoader
5353
from executorch.backends.qualcomm.serialization.qnn_compile_spec_schema import (
5454
_soc_info_table,
55+
HtpArch,
5556
QcomChipset,
5657
QnnExecuTorchBackendOptions,
5758
QnnExecuTorchBackendType,
@@ -854,6 +855,16 @@ def generate_qnn_executorch_compiler_spec(
854855
]
855856

856857

858+
def get_soc_to_arch_map():
859+
return {
860+
"SSG2115P": HtpArch.V73,
861+
"SM8650": HtpArch.V75,
862+
"SM8550": HtpArch.V73,
863+
"SM8475": HtpArch.V69,
864+
"SM8450": HtpArch.V69,
865+
}
866+
867+
857868
def get_soc_to_chipset_map():
858869
return {
859870
"SSG2115P": QcomChipset.SSG2115P,

examples/qualcomm/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
capture_program,
3131
generate_htp_compiler_spec,
3232
generate_qnn_executorch_compiler_spec,
33-
get_soc_to_chipset_map,
33+
get_soc_to_arch_map,
3434
)
3535
from executorch.exir import EdgeCompileConfig, EdgeProgramManager, to_edge
3636
from executorch.exir.backend.backend_api import to_backend
@@ -83,7 +83,7 @@ def __init__(
8383
self.dump_intermediate_outputs = dump_intermediate_outputs
8484
self.debug_output_path = f"{self.workspace}/debug_output.bin"
8585
self.output_folder = f"{self.workspace}/outputs"
86-
self.soc_model = get_soc_to_chipset_map()[soc_model]
86+
self.soc_model = get_soc_to_arch_map()[soc_model]
8787
self.error_only = error_only
8888
self.shared_buffer = shared_buffer
8989
self.runner = runner

0 commit comments

Comments
 (0)