Skip to content

Commit ff0715d

Browse files
adrastogiAditya Rastogi
andauthored
Adding candidate metadata key for tracking EP's OS driver version (#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 <[email protected]>
1 parent ee0ffd5 commit ff0715d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/onnxruntime/core/session/onnxruntime_ep_device_ep_metadata_keys.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// Key for the execution provider version string. This should be available for all plugin EPs.
1010
static const char* const kOrtEpDevice_EpMetadataKey_Version = "version";
1111

12+
// Key for the execution provider OS driver version.
13+
static const char* const kOrtEpDevice_EpMetadataKey_OSDriverVersion = "os_driver_version";
14+
1215
// Prefix for execution provider compatibility information stored in model metadata.
1316
// Used when generating EP context models to store compatibility strings for each EP.
1417
// Full key format: "ep_compatibility_info.<EP_TYPE>"

0 commit comments

Comments
 (0)