Qualcomm AI Engine Direct - LPAI Direct Mode Support#19142
Qualcomm AI Engine Direct - LPAI Direct Mode Support#19142abhinaykukkadapu merged 2 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19142
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: ❌ 2 New Failures, 1 Cancelled Job, 3 Unrelated FailuresAs of commit cdf7fd1 with merge base 4ac044b ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but was 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
|
|
@abhinaykukkadapu has imported this pull request. If you are a Meta employee, you can view this in D102704988. |
|
@winskuo-quic i think this PR is a good litmus test for the buck ci signal, can you try and fix the error, i think you need to guard the QnnCustomProtocol.h for hexagon. Also you might have to move QNN_TENSOR_ALIGNMENT constant to wrapper to avoid circular dep between wrapper -> runtime -> wrapper. FYI, i just put a skill together to address this #19197 |
0059142 to
7309076
Compare
@abhinaykukkadapu, |
7309076 to
cdf7fd1
Compare
This is amazing, this is the workflow we envisioned. CC: @digantdesai |

Summary
build.shExample:
backends/qualcomm/scripts/build.sh --build_direct_mode 0 --soc_model SM8850python examples/qualcomm/scripts/inception_v3.py --model SM8850 --device $DEVICE --build_folder build-android --dataset ../datasets/imagenet-mini/val/ --backend lpai --direct_build_folder build-direct/python backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNQuantizedOperator.test_qnn_backend_relu_simple --model SM8850 -s $DEVICE --build_folder build-android --backend lpai --direct_build_folder build-direct/Test plan
Passing operator test and ic3 with flag
--backend lpai --direct_build_folder build-direct. Also ensure traditional lpai flow and cDSP traditional/direct mode flow didn't breal.Ensure --no_clean works fine when build.sh with following verification script.