-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Add] add Rocm ep doc #12971
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
Merged
Merged
[Add] add Rocm ep doc #12971
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
3dad979
initial test
75a725b
test
c6a1def
[Need fix] use temporary link
PeixuanZuo 498bb9e
[add] add rocm buiild
PeixuanZuo 33b512e
Merge pull request #1 from PeixuanZuo/rocm-ep
ytaous fef8d86
execution providers
f6391a9
execution providers
9ff0598
execution providers
72801d3
execution providers
7df41be
execution providers
f967ab8
execution providers
3a4b1d5
execution providers
d81de75
execution providers
fc41a7b
ort install page
15b9e35
rocm ep page
0f45985
rocm ep page
b2dff8d
Merge branch 'rocm-ep' of https://github.com/ytaous/onnxruntime into …
PeixuanZuo 8cc80b9
[Update] build training
PeixuanZuo 2fe4faf
[Update] build training
PeixuanZuo 4c50332
[Add] add mircobench
PeixuanZuo d2c0700
[Add] add rocm optimization
PeixuanZuo bde33d9
[Update] format
PeixuanZuo cd240e5
[Update] optimization
PeixuanZuo 54060fb
[Update] update performance
PeixuanZuo 5844ed9
[Update] rm microbench and update rocm profiling
PeixuanZuo a305bcb
Merge pull request #2 from ytaous/peixuanzuo/add_performance
PeixuanZuo 68795ab
[Update] update dockerfile.rocm link
PeixuanZuo f387993
[Update] rocm execution provider
PeixuanZuo c5d00ca
[Fix] ffix doc
PeixuanZuo 5b33d8a
[Fix] ep selection format
PeixuanZuo a21b72f
[Fix] ep selection format
PeixuanZuo 0e5518b
[Fix] ep selection format
PeixuanZuo eab192b
[Update] variable name
PeixuanZuo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| --- | ||
| title: ROCm (AMD) | ||
| description: Instructions to execute ONNX Runtime with the AMD ROCm execution provider | ||
| parent: Execution Providers | ||
| nav_order: 11 | ||
| redirect_from: /docs/reference/execution-providers/ROCm-ExecutionProvider | ||
| --- | ||
|
|
||
| # ROCm Execution Provider | ||
| {: .no_toc } | ||
|
|
||
| The ROCm Execution Provider enables hardware accelerated computation on AMD ROCm-enabled GPUs. | ||
|
|
||
| ## Contents | ||
| {: .no_toc } | ||
|
|
||
| * TOC placeholder | ||
| {:toc} | ||
|
|
||
| ## Install | ||
|
|
||
| Pre-built binaries of ONNX Runtime with ROCm EP are published for most language bindings. Please reference [Install ORT](../install). | ||
|
|
||
| ## Requirements | ||
|
|
||
|
|
||
| |ONNX Runtime|ROCm| | ||
| |---|---| | ||
| |main|5.2.3| | ||
| |1.12|5.2.3| | ||
| |1.12|5.2| | ||
|
|
||
|
|
||
| ## Build | ||
| For build instructions, please see the [BUILD page](../build/eps.md#amd-rocm). | ||
|
|
||
| ## Usage | ||
|
|
||
| ### C/C++ | ||
|
|
||
| ```c++ | ||
| Ort::Env env = Ort::Env{ORT_LOGGING_LEVEL_ERROR, "Default"}; | ||
| Ort::SessionOptions so; | ||
| int device_id = 0; | ||
| Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_ROCm(so, device_id)); | ||
| ``` | ||
|
|
||
| The C API details are [here](../get-started/with-c.md). | ||
|
|
||
| ### Python | ||
| Python APIs details are [here](https://onnxruntime.ai/docs/api/python/api_summary.html). | ||
|
|
||
| ## Performance Tuning | ||
| For performance tuning, please see guidance on this page: [ONNX Runtime Perf Tuning](../performance/tune-performance.md) | ||
|
|
||
| ## Samples | ||
|
|
||
| ### Python | ||
|
|
||
| ```python | ||
| import onnxruntime as ort | ||
|
|
||
| model_path = '<path to model>' | ||
|
|
||
| providers = [ | ||
| 'ROCmExecutionProvider', | ||
| 'CPUExecutionProvider', | ||
| ] | ||
|
|
||
| session = ort.InferenceSession(model_path, providers=providers) | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.