Skip to content

[QNN EP] Default to HTP instead of using last provided device - #26696

Merged
edgchen1 merged 1 commit into
microsoft:mainfrom
CodeLinaro:dev/mattsinc/default-to-htp-in-v2-api
Jan 12, 2026
Merged

[QNN EP] Default to HTP instead of using last provided device#26696
edgchen1 merged 1 commit into
microsoft:mainfrom
CodeLinaro:dev/mattsinc/default-to-htp-in-v2-api

Conversation

@qti-mattsinc

Copy link
Copy Markdown
Contributor

Description

When multiple devices are provided in AppendExecutionProviders_V2, default to the NPU device, instead of picking the last device in the list.

@quic-tirupath quic-tirupath left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since QNN EP supports either NPU or GPU and if 2 devices are provided, QNN EP use NPU (preferred default).

@edgchen1 edgchen1 added the ep:QNN issues related to QNN exeution provider label Dec 12, 2025
- When multiple devices are provided in AppendExecutionProviders_V2,
  default to the NPU device, instead of picking the last device in
  the list.
@qti-mattsinc
qti-mattsinc force-pushed the dev/mattsinc/default-to-htp-in-v2-api branch from 423b45a to d1636ea Compare January 7, 2026 18:16
@qti-mattsinc
qti-mattsinc marked this pull request as ready for review January 7, 2026 18:17
@qti-mattsinc

Copy link
Copy Markdown
Contributor Author

Ready for MSFT review. This change was previously cherry-picked onto the branch for the 1.8.30 EP build and can be mainlined now.

@edgchen1 / others, PTAL

Comment thread onnxruntime/core/providers/qnn/qnn_provider_factory.cc
Comment thread onnxruntime/core/providers/qnn/qnn_provider_factory.cc
@edgchen1

edgchen1 commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows GPU Doc Gen CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@edgchen1

edgchen1 commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

/azp run Windows ARM64 QNN CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@edgchen1
edgchen1 merged commit addc812 into microsoft:main Jan 12, 2026
89 checks passed
alex-spacemit pushed a commit to spacemit-com/onnxruntime that referenced this pull request Jan 20, 2026
…oft#26696)

### Description
When multiple devices are provided in `AppendExecutionProviders_V2`,
default to the NPU device, instead of picking the last device in the
list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:QNN issues related to QNN exeution provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants