From d5b606d50d5a251910a45cfcef001cb7c314c8ea Mon Sep 17 00:00:00 2001 From: Ryan Hill <38674843+RyanUnderhill@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:21:03 -0700 Subject: [PATCH] Remove now duplicated symbol (#16458) ### Description Change #16161 broke rocm by duplicating this symbol. This removes the duplicate to unblock the tests. --- onnxruntime/core/providers/cuda/cuda_provider_interface.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onnxruntime/core/providers/cuda/cuda_provider_interface.cc b/onnxruntime/core/providers/cuda/cuda_provider_interface.cc index 9632ecba3d..6cd5368cb7 100644 --- a/onnxruntime/core/providers/cuda/cuda_provider_interface.cc +++ b/onnxruntime/core/providers/cuda/cuda_provider_interface.cc @@ -2,6 +2,7 @@ // Licensed under the MIT License. #include "core/session/onnxruntime_c_api.h" +#if !defined(USE_ROCM) namespace onnxruntime { struct Provider; @@ -15,3 +16,5 @@ ORT_API(onnxruntime::Provider*, GetProvider) { return reinterpret_cast(onnxruntime::GetProvider()); } } + +#endif