Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

QNN EP Sample - Fresh build with latest official QNN package produces errors on ARM64 Snapdragon QC PC

Open
#497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start with run_qnn_ep_sample.bat and qnn_ep_sample.exe, reproducing the two reported failures on the ARM64 Snapdragon system. Read arm/windows/init.c alongside the QNN sample paths and the reported EpContext errors. Done means the affected executions no longer error or crash while the combinations already reported as working remain successful.

Written by the indexing model from the issue text.

Description

QNN EP

I used official latest ORT 1.20 pre-built package per https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html#pre-built-packages-windows-only

It looks to use QNN_2.27.0.240926142112_100894

After build and execute, some of the executions will produce error messages or crash

run_qnn_ep_sample.bat C:\Users\ivberg\Downloads\microsoft.ml.onnxruntime.qnn.1.20.0\build\native C:\Users\ivberg\Downloads\microsoft.ml.onnxruntime.qnn.1.20.0\runtimes\win-arm64\native

// Error 1

REM TODO Check for mobilenetv2-12_quant_shape.onnx_ctx.onnx

Error in cpuinfo: Unknown chip model name 'snapdragon (tm) 8cx gen 3 @ 3.40 GHz'.
Please add new Windows on Arm SoC/chip support to arm/windows/init.c!
unknown Qualcomm CPU part 0x1 ignored
...
2024-11-08 13:02:36.8328541 [E:onnxruntime:, onnx_ctx_model_helper.cc:162 onnxruntime::qnn::LoadQnnCtxFromOnnxGraph] Failed to load from EpContext model. qnn_backend_manager.cc:636 onnxruntime::qnn::QnnBackendManager::LoadCachedQnnContextFromBuffer Failed to get context binary info.
Exception in run_ort_qnn_ep: Failed to load from EpContext model. qnn_backend_manager.cc:636 onnxruntime::qnn::QnnBackendManager::LoadCachedQnnContextFromBuffer Failed to get context binary info.

// Error 2

REM run mobilenetv2-12_net_qnn_ctx.onnx (generated from native QNN) with QNN HTP backend

s:\src\onnxruntime-inference-examples\c_cxx\QNN_EP\mobilenetv2_classification\build\Release>qnn_ep_sample.exe --qnn mobilenetv2-12_net_qnn_ctx.onnx kitten_input_nhwc.raw
Exception in run_ort_qnn_ep:

The other combo of runs work fine

Dominant language
C++
Stars
1.7k
Forks
418
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/onnxruntime-inference-examples

All issues in microsoft/onnxruntime-inference-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.