Skip to content

Qualcomm AI Engine Direct - Fix push wrong library #6155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions backends/qualcomm/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from executorch.backends.qualcomm.builders.qnn_constants import OpContextLoader
from executorch.backends.qualcomm.serialization.qnn_compile_spec_schema import (
_soc_info_table,
HtpArch,
QcomChipset,
QnnExecuTorchBackendOptions,
QnnExecuTorchBackendType,
Expand Down Expand Up @@ -854,6 +855,16 @@ def generate_qnn_executorch_compiler_spec(
]


def get_soc_to_arch_map():
return {
"SSG2115P": HtpArch.V73,
"SM8650": HtpArch.V75,
"SM8550": HtpArch.V73,
"SM8475": HtpArch.V69,
"SM8450": HtpArch.V69,
}


def get_soc_to_chipset_map():
return {
"SSG2115P": QcomChipset.SSG2115P,
Expand Down
4 changes: 2 additions & 2 deletions examples/qualcomm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
capture_program,
generate_htp_compiler_spec,
generate_qnn_executorch_compiler_spec,
get_soc_to_chipset_map,
get_soc_to_arch_map,
)
from executorch.exir import EdgeCompileConfig, EdgeProgramManager, to_edge
from executorch.exir.backend.backend_api import to_backend
Expand Down Expand Up @@ -83,7 +83,7 @@ def __init__(
self.dump_intermediate_outputs = dump_intermediate_outputs
self.debug_output_path = f"{self.workspace}/debug_output.bin"
self.output_folder = f"{self.workspace}/outputs"
self.soc_model = get_soc_to_chipset_map()[soc_model]
self.soc_model = get_soc_to_arch_map()[soc_model]
self.error_only = error_only
self.shared_buffer = shared_buffer
self.runner = runner
Expand Down
Loading