Qualcomm AI Engine Direct - Refactor QnnDlcManager#19105
Qualcomm AI Engine Direct - Refactor QnnDlcManager#19105chenweng-quic wants to merge 1 commit intopytorch:mainfrom
Conversation
- Change experimental API call to formal one
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19105
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 4 Unrelated FailuresAs of commit 33d9fa0 with merge base 8e5ec80 ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude Review this PR. |
|
Hi @abhinaykukkadapu , I noticed that I’m unable to request a Claude review. Is there any plan to allow collaborators access to this feature? |
|
@claude review this PR. |
|
Claude finished @abhinaykukkadapu's task in 2m 49s —— View job Review of PR #19105: Qualcomm AI Engine Direct - Refactor QnnDlcManager
Overall: Good refactoring. Moving from the experimental Issues1.
2. Commented-out code left in // QnnSystemContext_GraphInfo_t* graphs = nullptr;
// uint32_t num_graphs = 0;These appear to be leftover from development and should be removed. 3. Dead type alias and stale include 4. Missing error check on error = backend_bundle_ptr_->implementation->GetQnnInterface().qnn_graph_retrieve(
backend_params_ptr_->qnn_context_ptr_->GetHandle(),
graphInfo.graphName,
&graphHandle);
if (error != QNN_SUCCESS) {
QNN_EXECUTORCH_LOG_ERROR("Failed to retrieve graph %s. Error %d.",
graphInfo.graphName, QNN_GET_ERROR_CODE(error));
return Error::Internal;
}Minor / Nits5. 6. Implicit 7. Positive observations
|
Sorry, i think it is currently only enabled for maintainers. |
Summary
Refactor Dlc manager from experimental API to formal one.
Reference
https://docs.qualcomm.com/doc/80-63442-10/topic/function_QnnSystemDlc_8h_1ad09233e5a66c421e0e80f4cdbf4c1b7e.html
https://docs.qualcomm.com/doc/80-63442-10/topic/function_QnnSystemDlc_8h_1aa3fcdf5c15256a69d445fc2a8c7a0e60.html
Test plan
There is a unit test for online prepare already.
cc @cccclai @cbilgin @abhinaykukkadapu