Skip to content

Support general session config entries in perf test tool#19289

Merged
adrianlizarraga merged 1 commit intomainfrom
adrianl/perftest-session-configs
Jan 27, 2024
Merged

Support general session config entries in perf test tool#19289
adrianlizarraga merged 1 commit intomainfrom
adrianl/perftest-session-configs

Conversation

@adrianlizarraga
Copy link
Contributor

Description

Adds the ability to specify general session configuration entries via the -C command-line option.
Example: -C "session.disable_cpu_ep_fallback|1 ep.context_enable|1"

Some session config entries can already be set via dedicated command-line options. If the user uses multiple command-line options to set the same session config entry, we'll print a warning. Note that the dedicated command-line options will take precedence.

Motivation and Context

Allows setting session configurations when testing EPs. QNN EP, for example, uses the session.disable_cpu_ep_fallback and ep.context_* options.

Copy link
Contributor

@HectorSVC HectorSVC left a comment

Choose a reason for hiding this comment

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

:shipit:

@adrianlizarraga adrianlizarraga merged commit 6d7ac9c into main Jan 27, 2024
@adrianlizarraga adrianlizarraga deleted the adrianl/perftest-session-configs branch January 27, 2024 03:51
YUNQIUGUO pushed a commit that referenced this pull request Jan 30, 2024
### Description
Adds the ability to specify general session configuration entries via
the `-C` command-line option.
Example: `-C "session.disable_cpu_ep_fallback|1 ep.context_enable|1"`

Some session config entries can already be set via dedicated
command-line options. If the user uses multiple command-line options to
set the same session config entry, we'll print a warning. Note that the
dedicated command-line options will take precedence.

### Motivation and Context
Allows setting session configurations when testing EPs. QNN EP, for
example, uses the `session.disable_cpu_ep_fallback` and `ep.context_*`
options.
@snnn
Copy link
Contributor

snnn commented Sep 5, 2025

This PR has been cherry-picked into the rel-1.17.0 branch in PR #19327. Removing the release:1.17.0 label.

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.

4 participants