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 33 "ANDROID" ,
44)
55load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
6+ load ("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl" , "get_qnn_library_verision" )
67
78def define_common_targets ():
89 """Defines targets that should be shared between fbcode and xplat.
@@ -56,10 +57,10 @@ def define_common_targets():
5657 platforms = [ANDROID ],
5758 visibility = ["@EXECUTORCH_CLIENTS" ],
5859 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 ()) ,
6061 },
6162 deps = [
62- "fbsource//third-party/qualcomm/qnn:api" ,
63+ "fbsource//third-party/qualcomm/qnn/qnn-{0} :api" . format ( get_qnn_library_verision ()) ,
6364 ":logging" ,
6465 "//executorch/backends/qualcomm:schema" ,
6566 "//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():
9292 ":schema" ,
9393 ],
9494 )
95+
96+ def get_qnn_library_verision ():
97+ return "2.26"
Original file line number Diff line number Diff line change 33
44load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
55load(":targets.bzl", "define_common_targets")
6+ load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
67
78oncall("executorch")
89
@@ -69,7 +70,7 @@ runtime.python_binary(
6970runtime.command_alias(
7071 name = "export_llama_qnn",
7172 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()) ,
7374 },
7475 exe = ":export_llama",
7576)
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