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