Put back Linux hack, it is necessary

This commit is contained in:
Ryan Hill 2021-05-06 00:32:09 -07:00
parent 3dfec5a339
commit 85e5fddd2a

View file

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