Skip to content

Commit a925ab0

Browse files
committed
Format with indentations
1 parent 3731048 commit a925ab0

File tree

1 file changed

+33
-26
lines changed

1 file changed

+33
-26
lines changed

docs/source/backends-qualcomm.md

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -373,50 +373,57 @@ adb logcat | grep -E "ExecuTorch"
373373

374374
##### Issue 1: Error 18 (InvalidArgument)
375375

376-
**Cause**: Wrong parameter order in Runner constructor or missing QNN config
376+
- **Cause**: Wrong parameter order in Runner constructor or missing QNN config
377377

378-
**Solution**: Check `$EXECUTORCH_ROOT/examples/qualcomm/oss_scripts/llama/runner/runner.h` for the correct constructor signature.
378+
- **Solution**: Check `$EXECUTORCH_ROOT/examples/qualcomm/oss_scripts/llama/runner/runner.h` for the correct constructor signature.
379379

380380
##### Issue 2: Error 1 (Internal) with QNN API Version Mismatch
381381

382-
**Symptoms**:
383-
```
384-
W [Qnn ExecuTorch]: Qnn API version 2.33.0 is mismatched
385-
E [Qnn ExecuTorch]: Using newer context binary on old SDK
386-
E [Qnn ExecuTorch]: Can't create context from binary. Error 5000
387-
```
382+
- **Symptoms**:
388383

389-
**Cause**: Model compiled with QNN SDK version X but APK uses QNN runtime version Y
384+
```
385+
W [Qnn ExecuTorch]: Qnn API version 2.33.0 is mismatched
386+
E [Qnn ExecuTorch]: Using newer context binary on old SDK
387+
E [Qnn ExecuTorch]: Can't create context from binary. Error 5000
388+
```
390389
391-
**Solution**:
392-
1. Update `build.gradle.kts` with matching QNN runtime version
390+
- **Cause**: Model compiled with QNN SDK version X but APK uses QNN runtime version Y
393391
394-
> **Note:** The version numbers below (`2.33.0` and `2.37.0`) are examples only. Please check for the latest compatible QNN runtime version or match your QNN SDK version to avoid API mismatches.
395-
**Before**:
396-
```kotlin
397-
implementation("com.qualcomm.qti:qnn-runtime:2.33.0")
398-
```
392+
- **Solution**:
393+
- Update `build.gradle.kts` with matching QNN runtime version
399394
400-
**After**:
401-
```kotlin
402-
implementation("com.qualcomm.qti:qnn-runtime:2.37.0")
403-
```
395+
> **Note:** The version numbers below (`2.33.0` and `2.37.0`) are examples only. Please check for the latest compatible QNN runtime version or match your QNN SDK version to avoid API mismatches.
396+
397+
**Before**:
398+
```kotlin
399+
implementation("com.qualcomm.qti:qnn-runtime:2.33.0")
400+
```
401+
402+
**After**:
403+
```kotlin
404+
implementation("com.qualcomm.qti:qnn-runtime:2.37.0")
405+
```
404406
405-
2. Or recompile model with matching QNN SDK version
407+
- Or recompile model with matching QNN SDK version
406408
407409
##### Issue 3: Native Code Changes Not Applied
408410
409-
**Symptoms**: Debug logs don't appear, behavior doesn't change
411+
- **Symptoms**:
412+
- Debug logs don't appear
413+
- Behavior doesn't change
410414
411-
**Cause**: Gradle using Maven dependency instead of local AAR
415+
- **Cause**:
416+
- Gradle using Maven dependency instead of local AAR
412417
413-
**Solution**: Always build with `-PuseLocalAar=true` flag
418+
- **Solution**:
419+
- Always build with `-PuseLocalAar=true` flag
414420
415421
##### Issue 4: Logs Not Appearing
416422
417-
**Cause**: Wrong logging tag filter
423+
- **Cause**: Wrong logging tag filter
424+
425+
- **Solution**: QNN uses "ExecuTorch" tag:
418426
419-
**Solution**: QNN uses "ExecuTorch" tag:
420427
```bash
421428
adb logcat | grep "ExecuTorch"
422429
```

0 commit comments

Comments
 (0)