Skip to content

Commit d7f74bd

Browse files
authored
fix typo
Differential Revision: D73141659 Pull Request resolved: #10243
1 parent 79d0b6a commit d7f74bd

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

backends/qualcomm/aot/ir/targets.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load(
44
)
55
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
66
load("@fbsource//xplat/executorch/backends/qualcomm:targets.bzl", "generate_schema_header")
7-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
7+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
88

99
QCIR_NAME = "qcir"
1010
INPUT_QCIR = QCIR_NAME + ".fbs"
@@ -56,7 +56,7 @@ def define_common_targets():
5656
platforms = [ANDROID],
5757
visibility = ["@EXECUTORCH_CLIENTS"],
5858
deps = [
59-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
59+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
6060
"//executorch/runtime/backend:interface",
6161
"//executorch/runtime/core:core",
6262
"//executorch/backends/qualcomm/aot/wrappers:wrappers",

backends/qualcomm/aot/python/targets.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load(
33
"ANDROID",
44
)
55
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
6-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
77

88
PYTHON_MODULE_NAME = "PyQnnManagerAdaptor"
99

@@ -34,7 +34,7 @@ def define_common_targets():
3434
"//executorch/backends/qualcomm/aot/ir:qcir_utils",
3535
"//executorch/backends/qualcomm/runtime:runtime",
3636
"fbsource//third-party/pybind11:pybind11",
37-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
37+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
3838
],
3939
external_deps = [
4040
"libtorch_python",
@@ -67,7 +67,7 @@ def define_common_targets():
6767
"//executorch/backends/qualcomm/aot/ir:qcir_utils",
6868
"//executorch/backends/qualcomm/runtime:runtime",
6969
"fbsource//third-party/pybind11:pybind11",
70-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
70+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
7171
],
7272
external_deps = [
7373
"libtorch_python",
@@ -94,6 +94,6 @@ def define_common_targets():
9494
"//executorch/backends/qualcomm/aot/ir:qcir_utils",
9595
"//executorch/backends/qualcomm/runtime:runtime",
9696
"fbsource//third-party/pybind11:pybind11",
97-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
97+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
9898
],
9999
)

backends/qualcomm/aot/wrappers/targets.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load(
33
"ANDROID",
44
)
55
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
6-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
77

88
def define_common_targets():
99
"""Defines targets that should be shared between fbcode and xplat.
@@ -23,7 +23,7 @@ def define_common_targets():
2323
platforms = [ANDROID],
2424
visibility = ["@EXECUTORCH_CLIENTS"],
2525
deps = [
26-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
26+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
2727
"//executorch/runtime/backend:interface",
2828
"//executorch/runtime/core:core",
2929
],

backends/qualcomm/runtime/targets.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load(
33
"ANDROID",
44
)
55
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
6-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
77

88
def define_common_targets():
99
"""Defines targets that should be shared between fbcode and xplat.
@@ -24,7 +24,7 @@ def define_common_targets():
2424
platforms = [ANDROID],
2525
visibility = ["@EXECUTORCH_CLIENTS"],
2626
deps = [
27-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
27+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
2828
"//executorch/runtime/backend:interface",
2929
],
3030
exported_deps = [
@@ -60,11 +60,11 @@ def define_common_targets():
6060
platforms = [ANDROID],
6161
visibility = ["@EXECUTORCH_CLIENTS"],
6262
resources = ({
63-
"qnn_lib": "fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs".format(get_qnn_library_verision()),
63+
"qnn_lib": "fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs".format(get_qnn_library_version()),
6464
} if include_aot_qnn_lib else {
6565
}),
6666
deps = [
67-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
67+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
6868
":logging",
6969
"//executorch/backends/qualcomm:schema",
7070
"//executorch/backends/qualcomm/aot/ir:qcir_utils",

backends/qualcomm/targets.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load(
33
"ANDROID",
44
)
55
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
6-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
77

88
# Construct the input and output file names. All input and output files rely on scalar_type file.
99
SCHEMA_NAME = "qc_compiler_spec"
@@ -84,7 +84,7 @@ def define_common_targets():
8484
define_static_target = True,
8585
visibility = ["@EXECUTORCH_CLIENTS"],
8686
deps = [
87-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
87+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
8888
"//executorch/runtime/backend:interface",
8989
"//executorch/runtime/core:core",
9090
"//executorch/backends/qualcomm/runtime:runtime_android_build",

backends/qualcomm/tests/TARGETS

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
22
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
3-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
3+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
44

55
python_library(
66
name = "models",
@@ -17,7 +17,7 @@ python_library(
1717
"utils.py",
1818
],
1919
# env = {
20-
# "LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
20+
# "LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_version()),
2121
# },
2222
deps = [
2323
":models",

examples/models/llama/TARGETS

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
55
load(":targets.bzl", "define_common_targets")
6-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
6+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
77

88
oncall("executorch")
99

@@ -90,7 +90,7 @@ runtime.python_binary(
9090
runtime.command_alias(
9191
name = "export_llama_qnn",
9292
env = {
93-
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
93+
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_version()),
9494
},
9595
exe = ":export_llama",
9696
)

examples/qualcomm/TARGETS

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
55
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
66
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
7-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
7+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
88

99
oncall("executorch")
1010

@@ -27,8 +27,8 @@ python_binary(
2727
runtime.command_alias(
2828
name = "export_example_qnn",
2929
env = {
30-
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
31-
"QNN_SDK_ROOT": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:__dir__)".format(get_qnn_library_verision()),
30+
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_version()),
31+
"QNN_SDK_ROOT": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:__dir__)".format(get_qnn_library_version()),
3232
},
3333
exe = ":export_example",
3434
)

examples/qualcomm/oss_scripts/llama/TARGETS

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
2+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
33
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
44
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
55

@@ -48,7 +48,7 @@ python_binary(
4848
runtime.command_alias(
4949
name = "llama_qnn",
5050
env = {
51-
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
51+
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_version()),
5252
# Place holder to pass the QNN_SDK_ROOT check in executorch/examples/qualcomm/utils.py
5353
"QNN_SDK_ROOT": "",
5454
},

examples/qualcomm/oss_scripts/llama/targets.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime")
2-
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
2+
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
33

44
def define_common_targets():
55
runtime.cxx_library(
@@ -20,7 +20,7 @@ def define_common_targets():
2020
"//executorch/extension/llm/runner:stats",
2121
"//executorch/extension/tensor:tensor",
2222
"//executorch/kernels/quantized:generated_lib",
23-
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()),
23+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
2424
],
2525
exported_deps = [
2626
"//executorch/extension/module:module",
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
def get_qnn_library_verision():
1+
def get_qnn_library_version():
22
return "2.28"

0 commit comments

Comments
 (0)