diff --git a/onnxruntime/core/providers/shared_library/provider_api.h b/onnxruntime/core/providers/shared_library/provider_api.h index 421f14cbcd..08fc1547c5 100644 --- a/onnxruntime/core/providers/shared_library/provider_api.h +++ b/onnxruntime/core/providers/shared_library/provider_api.h @@ -7,6 +7,7 @@ // switching providers to be runnable as shared libraries. The interfaces will become more tightly integrated into the core code. #pragma once +#ifndef USE_ROCM #define SHARED_PROVIDER 1 #include @@ -298,3 +299,5 @@ constexpr ONNXTensorElementDataType GetONNXTensorElementDataType() { r #define LOGS_DEFAULT(severity) \ LOGS_DEFAULT_CATEGORY(severity, ::onnxruntime::logging::Category::onnxruntime) + +#endif