Skip to content

Commit 1284d54

Browse files
authored
test_passes: wire QNN SDK into runtime env
Differential Revision: D104309789 Pull Request resolved: #19381
1 parent 6df43e1 commit 1284d54

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • backends/qualcomm/tests

backends/qualcomm/tests/BUCK

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ fbcode_target(_kind = runtime.python_test,
6464
srcs = [
6565
"test_passes.py",
6666
],
67+
env = {} if runtime.is_oss else {
68+
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_version()),
69+
"QNN_SDK_ROOT": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:__dir__)".format(get_qnn_library_version()),
70+
},
6771
deps = [
6872
":models",
6973
"fbsource//third-party/pypi/expecttest:expecttest", # @manual
@@ -77,6 +81,7 @@ fbcode_target(_kind = runtime.python_test,
7781
"//executorch/backends/qualcomm/builders:builders",
7882
] + ([] if runtime.is_oss else [
7983
# These deps fail in OSS: keep_gpu_sections kwarg breaks TARGETS evaluation
84+
"//executorch/devtools:lib",
8085
"//executorch/examples/models/llama:transformer_modules",
8186
"//executorch/examples/qualcomm/oss_scripts/llama:masking_utils",
8287
"//executorch/examples/qualcomm/oss_scripts/llama:static_llama",

0 commit comments

Comments
 (0)