File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 5252from executorch .backends .qualcomm .builders .qnn_constants import OpContextLoader
5353from 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+
857868def get_soc_to_chipset_map ():
858869 return {
859870 "SSG2115P" : QcomChipset .SSG2115P ,
Original file line number Diff line number Diff line change 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)
3535from executorch .exir import EdgeCompileConfig , EdgeProgramManager , to_edge
3636from 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
You can’t perform that action at this time.
0 commit comments