Skip to content

Commit 4a44e09

Browse files
cccclaifacebook-github-bot
authored andcommitted
fix the qnn sdk env issue
Summary: `executorch/examples/qualcomm/utils.py` will check if `QNN_SDK_ROOT` is set. This is helpful for oss, but internally we rely on buck to set the deps. Currently we just set `QNN_SDK_ROOT` to empty to bypass the issue. ``` buck run mode/dev-nosan //executorch/examples/qualcomm/oss_scripts/llama3_2:llama_qnn -- --compile_only --ptq 16a4w --checkpoint /home/chenlai/local//consolidated.00.pth --params /home/chenlai/local//params.json --tokenizer_model /home/chenlai/local//tokenizer.model --prompt "Once" -m SM8650 --model_size 1B --model_mode hybrid --build_folder /home/chenlai/local 2>&1 | tee static_llama.log ``` bypass-github-export-checks Reviewed By: billmguo Differential Revision: D67814838
1 parent 7a2dc47 commit 4a44e09

File tree

1 file changed

+2
-0
lines changed
  • examples/qualcomm/oss_scripts/llama3_2

1 file changed

+2
-0
lines changed

examples/qualcomm/oss_scripts/llama3_2/TARGETS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ runtime.command_alias(
3030
name = "llama_qnn",
3131
env = {
3232
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
33+
# Place holder to pass the QNN_SDK_ROOT check in executorch/examples/qualcomm/utils.py
34+
"QNN_SDK_ROOT": "",
3335
},
3436
exe = ":llama",
3537
)

0 commit comments

Comments
 (0)