-
Notifications
You must be signed in to change notification settings - Fork 175
fix(qualcomm): Qnn AOT refactor #578
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
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
827716a
refactor(qnn): change legacy QNN_SDK_ROOT to QAIRT_SDK_ROOT
oreomaker ed68fa6
Merge branch 'main' into qnn-aot
oreomaker e15db31
Merge branch 'main' into qnn-aot
oreomaker d380bfe
Merge branch 'main' into qnn-aot
oreomaker 5174606
refactor(qnn aot): add QNN AOT support and improve QNN backend integr…
oreomaker 3f63883
Merge branch 'main' into qnn-aot
oreomaker 0d08209
refactor(qnn): restore QNN allocator implementation
oreomaker 550380c
Merge branch 'main' into qnn-aot
chenghuaWang 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
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,8 +1,3 @@ | ||
| add_executable(mllm-qwen3-aot-c compile.cpp) | ||
| target_link_libraries(mllm-qwen3-aot-c PRIVATE MllmRT MllmCPUBackend) | ||
| target_link_libraries(mllm-qwen3-aot-c PRIVATE MllmRT MllmCPUBackend MllmQNNBackend) | ||
| target_include_directories(mllm-qwen3-aot-c PRIVATE ${MLLM_INCLUDE_DIR}) | ||
|
|
||
| target_include_directories(mllm-qwen3-aot-c PRIVATE | ||
| $ENV{QAIRT_SDK_ROOT}/include # QNN SDK include | ||
| $ENV{QAIRT_SDK_ROOT}/include/QNN # QNN SDK include | ||
| ) |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 1379
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 1040
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 399
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 49
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 49
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 4854
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 180
🏁 Script executed:
Repository: UbiquitousLearning/mllm
Length of output: 243
Add validation for QAIRT_SDK_ROOT environment variable before use.
The CMakeLists.txt uses
$ENV{QAIRT_SDK_ROOT}without checking if the environment variable is defined. While the associated Makefile incustom-op-package/LLaMAPackage/validates this with error handling, the CMake build files do not. IfQAIRT_SDK_ROOTis unset, the include path becomes/include/QNN, causing a confusing compile failure rather than a clear configuration error.Add validation similar to other backends in the codebase:
This check should be added early in the CMakeLists.txt files (both
mllm/backends/qnn/CMakeLists.txtandmllm/ffi/CMakeLists.txt) before the environment variable is referenced.