Skip to content

Commit f1a4cea

Browse files
committed
Add Qualcomm HTP specific doc for library and model
1 parent d937d9d commit f1a4cea

File tree

1 file changed

+15
-0
lines changed
  • examples/demo-apps/android/ExecuTorchDemo

1 file changed

+15
-0
lines changed

examples/demo-apps/android/ExecuTorchDemo/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ cp ./examples/demo-apps/android/jni/libexecutorchdemo.so \
123123
../examples/demo-apps/android/ExecuTorchDemo/app/src/main/jniLibs/arm64-v8a
124124
```
125125

126+
3. *Qualcomm HTP Only:* Copy Qualcomm HTP runtime library
127+
128+
If Qualcomm HTP backend is used, then we need to copy additional libraries from Qualcomm SDK artifacts:
129+
130+
```bash
131+
cp libQnnHtp.so libQnnHtpV69Skel.so libQnnHtpStub.so libQnnSystem.so \
132+
../examples/demo-apps/android/ExecuTorchDemo/app/src/main/jniLibs/arm64-v8a
133+
```
134+
126135
Later, this shared library will be loaded by `NativePeer.java` in Java code.
127136

128137
Then return to the `executorch` directory:
@@ -146,6 +155,12 @@ mkdir -p examples/demo-apps/android/ExecuTorchDemo/app/src/main/assets/
146155
cp dl3_xnnpack_fp32.pte ic4_xnnpack_fp32.pte examples/demo-apps/android/ExecuTorchDemo/app/src/main/assets/
147156
```
148157

158+
2. *Qualcomm HTP Only:* Copy HTP delegation models to the app:
159+
160+
```bash
161+
cp dlv3_qnn.pte ic4_qnn.pte examples/demo-apps/android/ExecuTorchDemo/app/src/main/assets/
162+
```
163+
149164
## Final Steps
150165

151166
1. Open the project `examples/demo-apps/android/ExecuTorchDemo` with Android Studio.

0 commit comments

Comments
 (0)