-
Notifications
You must be signed in to change notification settings - Fork 831
Qualcomm AI Engine Direct - CDSP Direct Mode #17326
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17326
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 Awaiting Approval, 17 New Failures, 1 Unrelated FailureAs of commit 9acdb38 with merge base 47b8d1d ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following job 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
|
Summary
Support CDSP direct mode by defining ExecuTorch's customized rpc protocol.
We have validated this PR with the following spec:
Please refer to README file under
backends/qualcomm/runtime/backends/direct_mode/README.mdfor setup. Please be aware of the Note section if you observe the total execution time is slower the traditional mode.Example Script
To build:
backends/qualcomm/scripts/build.sh --enable_hexagonTo run traditional mode (Same as usual):
python backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNQuantizedOperator.test_qnn_backend_adaptive_avg_pool2d --model SM8750 --device $DEVICE --build_folder build-androidTo run direct mode (add --direct_build_folder build-hexagon):
python backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNQuantizedOperator.test_qnn_backend_adaptive_avg_pool2d --model SM8750 --device $DEVICE --build_folder build-android --direct_build_folder build-hexagon/Test plan
add
--direct_build_folder build-hexagon/at end of anyTestQNNQuantizedUtils,TestQNNQuantizedModel,TestQNNFloatingPointModel,TestQNNFloatingPointOperator