From 85e5fddd2a936faa1c7f87c5485ca7cedfd40020 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Thu, 6 May 2021 00:32:09 -0700 Subject: [PATCH] Put back Linux hack, it is necessary --- onnxruntime/core/framework/provider_bridge_ort.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onnxruntime/core/framework/provider_bridge_ort.cc b/onnxruntime/core/framework/provider_bridge_ort.cc index fa44f50f94..84067dea51 100644 --- a/onnxruntime/core/framework/provider_bridge_ort.cc +++ b/onnxruntime/core/framework/provider_bridge_ort.cc @@ -951,10 +951,9 @@ struct ProviderLibrary { }; static ProviderLibrary s_library_cuda(LIBRARY_PREFIX "onnxruntime_providers_cuda" LIBRARY_EXTENSION -#if 0 #ifndef _WIN32 - ,false /* unload - On Linux if we unload the cuda shared provider we crash */ -#endif + , + false /* unload - On Linux if we unload the cuda shared provider we crash */ #endif ); static ProviderLibrary s_library_dnnl(LIBRARY_PREFIX "onnxruntime_providers_dnnl" LIBRARY_EXTENSION);