Skip to content

Commit

Permalink
fix typo in comment, both rocm and cuda eps
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily committed Oct 9, 2023
1 parent 6686321 commit 4d93107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/cuda/cuda_provider_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ struct CUDA_Provider : Provider {
cuda_options.arena_extend_strategy = internal_options.arena_extend_strategy;
cuda_options.do_copy_in_default_stream = internal_options.do_copy_in_default_stream;
cuda_options.has_user_compute_stream = internal_options.has_user_compute_stream;
// The 'has_user_compute_stream' of the OrtCUDAProviderOptionsV2 instance can be set byC API UpdateCUDAProviderOptionsWithValue() as well.
// The 'has_user_compute_stream' of the OrtCUDAProviderOptionsV2 instance can be set by C API UpdateCUDAProviderOptionsWithValue() as well.
// We only set the 'has_user_compute_stream' of the OrtCUDAProviderOptionsV2 instance if it is provided in options
if (options.find("has_user_compute_stream") != options.end()) {
cuda_options.user_compute_stream = internal_options.user_compute_stream;
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/rocm/rocm_provider_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ struct ROCM_Provider : Provider {
rocm_options.miopen_conv_exhaustive_search = internal_options.miopen_conv_exhaustive_search;
rocm_options.do_copy_in_default_stream = internal_options.do_copy_in_default_stream;
rocm_options.has_user_compute_stream = internal_options.has_user_compute_stream;
// The 'has_user_compute_stream' of the OrtROCMProviderOptions instance can be set byC API UpdateROCMProviderOptionsWithValue() as well.
// The 'has_user_compute_stream' of the OrtROCMProviderOptions instance can be set by C API UpdateROCMProviderOptionsWithValue() as well.
// We only set the 'has_user_compute_stream' of the OrtROCMProviderOptions instance if it is provided in options
if (options.find("has_user_compute_stream") != options.end()) {
rocm_options.user_compute_stream = internal_options.user_compute_stream;
Expand Down

0 comments on commit 4d93107

Please sign in to comment.