-
Notifications
You must be signed in to change notification settings - Fork 1k
Improve QNN backend AOT user experience #17989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
abhinaykukkadapu
merged 6 commits into
gh/abhinaykukkadapu/16/base
from
gh/abhinaykukkadapu/16/head
Mar 23, 2026
+269
−111
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e14f986
Improve QNN backend AOT user experience
abhinaykukkadapu 496f338
Update on "Improve QNN backend AOT user experience"
abhinaykukkadapu 95ff4f7
Update on "Improve QNN backend AOT user experience"
abhinaykukkadapu 992c5c0
Update on "Improve QNN backend AOT user experience"
abhinaykukkadapu 31c2196
Update on "Improve QNN backend AOT user experience"
abhinaykukkadapu 54a68e6
Update on "Improve QNN backend AOT user experience"
abhinaykukkadapu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,29 @@ | ||
| import os | ||
|
|
||
| from .scripts.download_qnn_sdk import install_qnn_sdk, is_linux_x86 | ||
| from .scripts.download_qnn_sdk import install_qnn_sdk, is_linux_x86, QNN_ZIP_URL | ||
|
|
||
|
|
||
| env_flag = os.getenv("EXECUTORCH_BUILDING_WHEEL", "0").lower() | ||
| # If users have preinstalled QNN_SDK_ROOT, we will use it. | ||
| qnn_sdk_root_flag = os.getenv("QNN_SDK_ROOT", None) | ||
|
|
||
| if env_flag not in ("1", "true", "yes") and not qnn_sdk_root_flag and is_linux_x86(): | ||
| ok = install_qnn_sdk() | ||
| if not ok: | ||
| raise RuntimeError("Failed to install QNN SDK. Please check the logs above.") | ||
| if env_flag not in ("1", "true", "yes"): | ||
| if qnn_sdk_root_flag: | ||
| print( | ||
| f"[QNN] Using QNN SDK at {qnn_sdk_root_flag} (from QNN_SDK_ROOT)", | ||
| flush=True, | ||
| ) | ||
| elif is_linux_x86(): | ||
| ok = install_qnn_sdk() | ||
| if not ok: | ||
| raise RuntimeError( | ||
| "Failed to set up QNN SDK.\n\n" | ||
| "To resolve, try one of:\n" | ||
| " 1. Download the SDK manually from:\n" | ||
| f" {QNN_ZIP_URL}\n" | ||
| " Or go to step 2 if QNN SDK already exists.\n" | ||
| " 2. Set QNN_SDK_ROOT to an existing SDK installation:\n" | ||
| " export QNN_SDK_ROOT=/path/to/qualcomm/sdk\n" | ||
| " export LD_LIBRARY_PATH=" | ||
| "$QNN_SDK_ROOT/lib/x86_64-linux-clang/:$LD_LIBRARY_PATH" | ||
| ) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.