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 52
52
from executorch .backends .qualcomm .builders .qnn_constants import OpContextLoader
53
53
from executorch .backends .qualcomm .serialization .qnn_compile_spec_schema import (
54
54
_soc_info_table ,
55
+ HtpArch ,
55
56
QcomChipset ,
56
57
QnnExecuTorchBackendOptions ,
57
58
QnnExecuTorchBackendType ,
@@ -854,6 +855,16 @@ def generate_qnn_executorch_compiler_spec(
854
855
]
855
856
856
857
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
+
857
868
def get_soc_to_chipset_map ():
858
869
return {
859
870
"SSG2115P" : QcomChipset .SSG2115P ,
Original file line number Diff line number Diff line change 30
30
capture_program ,
31
31
generate_htp_compiler_spec ,
32
32
generate_qnn_executorch_compiler_spec ,
33
- get_soc_to_chipset_map ,
33
+ get_soc_to_arch_map ,
34
34
)
35
35
from executorch .exir import EdgeCompileConfig , EdgeProgramManager , to_edge
36
36
from executorch .exir .backend .backend_api import to_backend
@@ -83,7 +83,7 @@ def __init__(
83
83
self .dump_intermediate_outputs = dump_intermediate_outputs
84
84
self .debug_output_path = f"{ self .workspace } /debug_output.bin"
85
85
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 ]
87
87
self .error_only = error_only
88
88
self .shared_buffer = shared_buffer
89
89
self .runner = runner
You can’t perform that action at this time.
0 commit comments