Skip to content

Adding candidate metadata key for tracking EP's OS driver version - #26616

Merged
adrastogi merged 2 commits into
mainfrom
user/adrastogi/driver-version-metadata-key
Nov 21, 2025
Merged

Adding candidate metadata key for tracking EP's OS driver version#26616
adrastogi merged 2 commits into
mainfrom
user/adrastogi/driver-version-metadata-key

Conversation

@adrastogi

@adrastogi adrastogi commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Description

This change adds a well-known key name (os_driver_version) corresponding to the OS driver version associated with an EP. We will eventually flesh this out to enable retrieving it from the OrtEpDevice if it's been populated, but for starters we reserve the name.

Motivation and Context

We have a scenario in WebNN where the browser would like to get the driver version associated with a given EP (this is to enable policy against the driver, e.g. for maintaining a blocklist if a particular driver version has a scenario-blocking bug in it). Having a mechanism to retrieve the driver version via ORT would help with implementing this feature.

Comment thread include/onnxruntime/core/session/onnxruntime_ep_device_ep_metadata_keys.h Outdated
@adrastogi
adrastogi marked this pull request as ready for review November 21, 2025 00:21
@adrastogi
adrastogi merged commit ff0715d into main Nov 21, 2025
104 of 111 checks passed
@adrastogi
adrastogi deleted the user/adrastogi/driver-version-metadata-key branch November 21, 2025 03:38
Rohanjames1997 pushed a commit to Rohanjames1997/onnxruntime that referenced this pull request Dec 4, 2025
…crosoft#26616)

### Description
This change adds a well-known key name (`os_driver_version`)
corresponding to the OS driver version associated with an EP. We will
eventually flesh this out to enable retrieving it from the `OrtEpDevice`
if it's been populated, but for starters we reserve the name.

### Motivation and Context
We have a scenario in WebNN where the browser would like to get the
driver version associated with a given EP (this is to enable policy
against the driver, e.g. for maintaining a blocklist if a particular
driver version has a scenario-blocking bug in it). Having a mechanism to
retrieve the driver version via ORT would help with implementing this
feature.

---------

Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
Sumit2318 pushed a commit that referenced this pull request Jan 6, 2026
…6616)

### Description
This change adds a well-known key name (`os_driver_version`)
corresponding to the OS driver version associated with an EP. We will
eventually flesh this out to enable retrieving it from the `OrtEpDevice`
if it's been populated, but for starters we reserve the name.

### Motivation and Context
We have a scenario in WebNN where the browser would like to get the
driver version associated with a given EP (this is to enable policy
against the driver, e.g. for maintaining a blocklist if a particular
driver version has a scenario-blocking bug in it). Having a mechanism to
retrieve the driver version via ORT would help with implementing this
feature.

---------

Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
skottmckay pushed a commit that referenced this pull request May 23, 2026
…Version (#28282)

### Description
<!-- Describe your changes. -->
This change provides details on the expected value for
`kOrtEpDevice_EpMetadataKey_OSDriverVersion` and provides an example in
the plugin EP tests.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
We introduced a new EP metadata key called
`kOrtEpDevice_EpMetadataKey_OSDriverVersion` in #26616 but neglected to
provide sufficient detail to guide EP authors in how to fill in the
value for this key. This PR is an attempt to address that gap.

---------

Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants