From 0a20e40af1e5146cc00f5c6ea0d3feeb6b90e86b Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Thu, 22 Apr 2021 14:44:44 -0700 Subject: [PATCH] No-op cuda provider creation --- onnxruntime/core/framework/provider_bridge_ort.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onnxruntime/core/framework/provider_bridge_ort.cc b/onnxruntime/core/framework/provider_bridge_ort.cc index 70495775c3..b7d7322a68 100644 --- a/onnxruntime/core/framework/provider_bridge_ort.cc +++ b/onnxruntime/core/framework/provider_bridge_ort.cc @@ -1092,11 +1092,13 @@ ORT_API_STATUS_IMPL(OrtApis::GetCurrentGpuDeviceId, _In_ int* device_id) { } ORT_API_STATUS_IMPL(OrtApis::SessionOptionsAppendExecutionProvider_CUDA, _In_ OrtSessionOptions* options, _In_ const OrtCUDAProviderOptions* cuda_options) { +#if 0 auto factory = onnxruntime::CreateExecutionProviderFactory_Cuda(cuda_options); if (!factory) { return OrtApis::CreateStatus(ORT_FAIL, "OrtSessionOptionsAppendExecutionProvider_Cuda: Failed to load shared library"); } options->provider_factories.push_back(factory); +#endif return nullptr; }