Skip to content

Add support to filter_ep_devices using ep or device metadata in perftest - #26255

Merged
Chi Lo (chilo-ms) merged 3 commits into
microsoft:mainfrom
jnagi-intel:perf_test_filter_ep_devices
Oct 16, 2025
Merged

Add support to filter_ep_devices using ep or device metadata in perftest#26255
Chi Lo (chilo-ms) merged 3 commits into
microsoft:mainfrom
jnagi-intel:perf_test_filter_ep_devices

Conversation

@jnagi-intel

@jnagi-intel Jaskaran Singh Nagi (jnagi-intel) commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Add support for ep device selection in ORT perf test by filtering the ep device list based on EP or Device metadata

--filter_ep_devices (Specifies EP or Device metadata entries as key-value pairs to filter ep devices passed to AppendExecutionProvider_V2.
[Usage]: --filter_ep_devices "<key1>|<value1> <key2>|<value2>"
Devices that match any of the key-value pair will be appended to the session. --select_ep_devices will take precedence over this option.

Examples with OpenVINO EP:

  • --plugin_ep_libs "OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll" --plugin_eps OpenVINOExecutionProvider --filter_ep_devices "ov_device|NPU"
    [Plugin EP] EP Device [Index: 1, Name: OpenVINOExecutionProvider, Type: 2] has been added to session.
  • --plugin_ep_libs "OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll" --plugin_eps OpenVINOExecutionProvider.AUTO --filter_ep_devices "ov_device|NPU ov_device|CPU"
    [Plugin EP] EP Device [Index: 3, Name: OpenVINOExecutionProvider.AUTO, Type: 2] has been added to session.
    [Plugin EP] EP Device [Index: 4, Name: OpenVINOExecutionProvider.AUTO, Type: 0] has been added to session.

@chilo-ms

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

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

@jnagi-intel

Copy link
Copy Markdown
Contributor Author

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

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 26255 in repo microsoft/onnxruntime

@jnagi-intel

Copy link
Copy Markdown
Contributor Author

Chi Lo (@chilo-ms) Can you please re-run the CI ? I pushed a fix for lint error

@chilo-ms

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

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

Comment thread onnxruntime/test/perftest/strings_helper.cc
@chilo-ms

Copy link
Copy Markdown
Contributor

Reopen this PR to trigger "license/cla" pipeline

@chilo-ms

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

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

@chilo-ms

Copy link
Copy Markdown
Contributor

Please help merge main to include the fix to pass the failing pipelines

@jnagi-intel

Copy link
Copy Markdown
Contributor Author

Please help merge main to include the fix to pass the failing pipelines

done

@chilo-ms

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

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

@chilo-ms
Chi Lo (chilo-ms) merged commit 9e79b36 into microsoft:main Oct 16, 2025
90 checks passed
Jonathan Clohessy (JonathanC-ARM) pushed a commit to JonathanC-ARM/onnxruntime that referenced this pull request Oct 24, 2025
…est (microsoft#26255)

Add support for ep device selection in ORT perf test by filtering the ep
device list based on EP or Device metadata

`--filter_ep_devices` (Specifies EP or Device metadata entries as
key-value pairs to filter ep devices passed to
AppendExecutionProvider_V2.
[Usage]: `--filter_ep_devices "<key1>|<value1> <key2>|<value2>"`
Devices that match any of the key-value pair will be appended to the
session. --select_ep_devices will take precedence over this option.

Examples with OpenVINO EP:
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider --filter_ep_devices
"ov_device|NPU"`
`[Plugin EP] EP Device [Index: 1, Name: OpenVINOExecutionProvider, Type:
2] has been added to session.`
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider.AUTO --filter_ep_devices
"ov_device|NPU ov_device|CPU"`
`[Plugin EP] EP Device [Index: 3, Name: OpenVINOExecutionProvider.AUTO,
Type: 2] has been added to session.`
`[Plugin EP] EP Device [Index: 4, Name: OpenVINOExecutionProvider.AUTO,
Type: 0] has been added to session.`
Yulong Wang (fs-eire) pushed a commit that referenced this pull request Oct 24, 2025
…est (#26255)

Add support for ep device selection in ORT perf test by filtering the ep
device list based on EP or Device metadata

`--filter_ep_devices` (Specifies EP or Device metadata entries as
key-value pairs to filter ep devices passed to
AppendExecutionProvider_V2.
[Usage]: `--filter_ep_devices "<key1>|<value1> <key2>|<value2>"`
Devices that match any of the key-value pair will be appended to the
session. --select_ep_devices will take precedence over this option.

Examples with OpenVINO EP:
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider --filter_ep_devices
"ov_device|NPU"`
`[Plugin EP] EP Device [Index: 1, Name: OpenVINOExecutionProvider, Type:
2] has been added to session.`
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider.AUTO --filter_ep_devices
"ov_device|NPU ov_device|CPU"`
`[Plugin EP] EP Device [Index: 3, Name: OpenVINOExecutionProvider.AUTO,
Type: 2] has been added to session.`
`[Plugin EP] EP Device [Index: 4, Name: OpenVINOExecutionProvider.AUTO,
Type: 0] has been added to session.`
Naomi Ovadia (naomiOvad) pushed a commit to naomiOvad/onnxruntime that referenced this pull request Nov 2, 2025
…est (microsoft#26255)

Add support for ep device selection in ORT perf test by filtering the ep
device list based on EP or Device metadata

`--filter_ep_devices` (Specifies EP or Device metadata entries as
key-value pairs to filter ep devices passed to
AppendExecutionProvider_V2.
[Usage]: `--filter_ep_devices "<key1>|<value1> <key2>|<value2>"`
Devices that match any of the key-value pair will be appended to the
session. --select_ep_devices will take precedence over this option.

Examples with OpenVINO EP:
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider --filter_ep_devices
"ov_device|NPU"`
`[Plugin EP] EP Device [Index: 1, Name: OpenVINOExecutionProvider, Type:
2] has been added to session.`
* `--plugin_ep_libs
"OpenVINOExecutionProvider|onnxruntime_providers_openvino_plugin.dll"
--plugin_eps OpenVINOExecutionProvider.AUTO --filter_ep_devices
"ov_device|NPU ov_device|CPU"`
`[Plugin EP] EP Device [Index: 3, Name: OpenVINOExecutionProvider.AUTO,
Type: 2] has been added to session.`
`[Plugin EP] EP Device [Index: 4, Name: OpenVINOExecutionProvider.AUTO,
Type: 0] has been added to session.`
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