Skip to content

Support canonical EP names in SessionOptionsAppendExecutionProvider#24433

Merged
adrianlizarraga merged 10 commits intomainfrom
adrianl/allow-long-ep-names-for-c-append-ep
Apr 16, 2025
Merged

Support canonical EP names in SessionOptionsAppendExecutionProvider#24433
adrianlizarraga merged 10 commits intomainfrom
adrianl/allow-long-ep-names-for-c-append-ep

Conversation

@adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Apr 15, 2025

Description

Updates the SessionOptionsAppendExecutionProvider function to also support full canonical provider names (e.g., QNNExecutionProvider) in addition to the short names (e.g., QNN).

Motivation and Context

There's an inconsistency in how ORT names EPs. The SessionOptionsAppendExecutionProvider C API function uses short names (e.g., "QNN"), but other ORT APIs use longer names (e.g., "QNNExecutionProvider").

  • Python APIs to add EP to session uses "QNNExecutionProvider" (not "QNN")
  • Python and C APIs to GetAvailableProviders use "QNNExecutionProvider"
  • Internal ORT code uses "QNNExecutionProvider" to assign nodes to cuda ep.
  • Only SessionOptionsAppendExecutionProvider uses short names like "QNN".

@adrianlizarraga adrianlizarraga marked this pull request as ready for review April 15, 2025 18:51
skottmckay
skottmckay previously approved these changes Apr 16, 2025
@adrianlizarraga adrianlizarraga merged commit 4d03aef into main Apr 16, 2025
84 of 89 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/allow-long-ep-names-for-c-append-ep branch April 16, 2025 14:22
fs-eire pushed a commit that referenced this pull request Apr 16, 2025
### Description
Fix compilation issue (undeclared identifier) in Azure EP unit test.



### Motivation and Context
A previous PR caused a compilation issue in the Azure EP unit test:
#24433

Our PR CI pipelines did not catch it. It was caught by our post-merge
packaging pipelines.

```shell
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(28,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(29,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(30,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
```
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
…24433)

### Description
Updates the `SessionOptionsAppendExecutionProvider` function to also
support full canonical provider names (e.g., QNNExecutionProvider) in
addition to the short names (e.g., QNN).



### Motivation and Context
There's an inconsistency in how ORT names EPs. The
`SessionOptionsAppendExecutionProvider` C API function uses short names
(e.g., "QNN"), but other ORT APIs use longer names (e.g.,
"QNNExecutionProvider").
- Python APIs to add EP to session uses "QNNExecutionProvider" (not
"QNN")
- Python and C APIs to GetAvailableProviders use "QNNExecutionProvider"
- Internal ORT code uses "QNNExecutionProvider" to assign nodes to cuda
ep.
- Only `SessionOptionsAppendExecutionProvider` uses short names like
"QNN".
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
### Description
Fix compilation issue (undeclared identifier) in Azure EP unit test.



### Motivation and Context
A previous PR caused a compilation issue in the Azure EP unit test:
#24433

Our PR CI pipelines did not catch it. It was caught by our post-merge
packaging pipelines.

```shell
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(28,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(29,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
D:\a\_work\1\s\onnxruntime\test\providers\azure\azure_basic_test.cc(30,3): error C2065: 'session_options': undeclared identifier [D:\a\_work\1\b\RelWithDebInfo\onnxruntime_test_all.vcxproj]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants