-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ort add rocm ep support #2370
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
base: master
Are you sure you want to change the base?
ort add rocm ep support #2370
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -177,6 +177,21 @@ Ort::SessionOptions GetSessionOptionsImpl( | |||||
| } | ||||||
| break; | ||||||
| } | ||||||
| case Provider::KROCM: { | ||||||
| if (std::find(available_providers.begin(), available_providers.end(), | ||||||
| "ROCMExecutionProvider") != available_providers.end()) { | ||||||
| OrtROCMProviderOptions options; | ||||||
| options.device_id = | ||||||
| provider_config != nullptr ? provider_config->device : 0; | ||||||
|
||||||
| provider_config != nullptr ? provider_config->device : 0; | |
| provider_config? provider_config->device : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some doc to describe how to build sherpa-onnx with ROCM support?
Do we need to change the toplevel CMakeLists.txt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not to change the CMaleLists.txt , only need to set env SHERPA_ONNXRUNTIME_INCLUDE_DIR , SHERPA_ONNXRUNTIME_LIB_DIR before use cmake to build .
hygon prebuilt onnxruntime :
https://cancon.hpccube.com:65024/4/main/onnxruntime/DAS1.6
amd prebuilt onnxruntime :
I will built and upload .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you follow
https://github.com/k2-fsa/sherpa-onnx/blob/master/cmake/onnxruntime-win-x64-directml.cmake
to support rocm?
It will simplify how users use rocm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. but currently , I did not find onnxruntime-rocm on nuget ,conan or vcpkg . I will build a onnxruntime-rocm and update Cmake.
Uh oh!
There was an error while loading. Please reload this page.