File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
shim/xplat/executorch/backends/qualcomm Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3
3
"ANDROID" ,
4
4
)
5
5
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
6
+ load ("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl" , "get_qnn_library_verision" )
6
7
7
8
def define_common_targets ():
8
9
"""Defines targets that should be shared between fbcode and xplat.
@@ -56,10 +57,10 @@ def define_common_targets():
56
57
platforms = [ANDROID ],
57
58
visibility = ["@EXECUTORCH_CLIENTS" ],
58
59
resources = {
59
- "qnn_lib" : "fbsource//third-party/qualcomm/qnn/qnn-2.25 :qnn_offline_compile_libs" ,
60
+ "qnn_lib" : "fbsource//third-party/qualcomm/qnn/qnn-{0} :qnn_offline_compile_libs" . format ( get_qnn_library_verision ()) ,
60
61
},
61
62
deps = [
62
- "fbsource//third-party/qualcomm/qnn:api" ,
63
+ "fbsource//third-party/qualcomm/qnn/qnn-{0} :api" . format ( get_qnn_library_verision ()) ,
63
64
":logging" ,
64
65
"//executorch/backends/qualcomm:schema" ,
65
66
"//executorch/backends/qualcomm/aot/ir:qcir_utils" ,
Original file line number Diff line number Diff line change @@ -92,3 +92,6 @@ def define_common_targets():
92
92
":schema" ,
93
93
],
94
94
)
95
+
96
+ def get_qnn_library_verision ():
97
+ return "2.26"
Original file line number Diff line number Diff line change 3
3
4
4
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
5
5
load(":targets.bzl", "define_common_targets")
6
+ load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6
7
7
8
oncall("executorch")
8
9
@@ -69,7 +70,7 @@ runtime.python_binary(
69
70
runtime.command_alias(
70
71
name = "export_llama_qnn",
71
72
env = {
72
- "LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-2.25 :qnn_offline_compile_libs)",
73
+ "LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0} :qnn_offline_compile_libs)".format(get_qnn_library_verision()) ,
73
74
},
74
75
exe = ":export_llama",
75
76
)
Original file line number Diff line number Diff line change
1
+ def get_qnn_library_verision ():
2
+ return "2.26"
You can’t perform that action at this time.
0 commit comments