Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying an execution provider in benchmark script #10453

Merged
merged 6 commits into from
Feb 3, 2022

Conversation

zhangyaobit
Copy link
Contributor

Description: Describe your changes.
Support specifying an execution provider in benchmark script.

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.

@zhangyaobit zhangyaobit changed the title Zhanyao/benchmark Support specifying an execution provider in benchmark script Feb 2, 2022
elif provider == 'rocm':
execution_providers = ['ROCMExecutionProvider', 'CPUExecutionProvider']
elif provider == 'migraphx':
execution_providers = ['MIGraphXExecutionProvider', 'CPUExecutionProvider']
Copy link
Contributor

Choose a reason for hiding this comment

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

Falling back to ROCm EP and then CPU EP: ['MIGraphXExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider']

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

elif provider == 'migraphx':
execution_providers = ['MIGraphXExecutionProvider', 'CPUExecutionProvider']
elif provider == 'tensorrt':
execution_providers = ['TensorrtExecutionProvider', 'CPUExecutionProvider']
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar here. Falling back to CUDA EP and then CPU EP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

weixingzhang
weixingzhang previously approved these changes Feb 2, 2022
@microsoft microsoft deleted a comment from azure-pipelines bot Feb 2, 2022
@zhangyaobit
Copy link
Contributor Author

/azp run Windows CPU CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zhangyaobit zhangyaobit merged commit 239c6ad into master Feb 3, 2022
@zhangyaobit zhangyaobit deleted the zhanyao/benchmark branch February 3, 2022 03:11
maxiwell added a commit to maxiwell/onnxruntime that referenced this pull request Feb 9, 2022
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