No-op cuda provider creation

This commit is contained in:
Ryan Hill 2021-04-22 14:44:44 -07:00
parent f2d14cd74e
commit 0a20e40af1

View file

@ -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;
}