mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
set unload to false to prevent crash when linux lib load not successfully (#20626)
### Description <!-- Describe your changes. --> during VITSIAI shared library load, set unload to false to prevent crash when linux lib load not successfully ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> for Linux environment, when library not loaded successfully, it will end up with crash without giving any useful message. the fix is to prevent the crash and give the useful message when shared library not loaded correctly.
This commit is contained in:
parent
01dd991f97
commit
e124cf8e76
1 changed files with 6 additions and 1 deletions
|
|
@ -1495,7 +1495,12 @@ static ProviderLibrary s_library_rocm(LIBRARY_PREFIX ORT_TSTR("onnxruntime_provi
|
|||
#endif
|
||||
);
|
||||
static ProviderLibrary s_library_dnnl(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_dnnl") LIBRARY_EXTENSION);
|
||||
static ProviderLibrary s_library_vitisai(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_vitisai") LIBRARY_EXTENSION);
|
||||
static ProviderLibrary s_library_vitisai(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_vitisai") LIBRARY_EXTENSION
|
||||
#ifndef _WIN32
|
||||
,
|
||||
false /* unload - On Linux if we unload the vitisai shared provider we crash */
|
||||
#endif
|
||||
);
|
||||
static ProviderLibrary s_library_openvino(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_openvino") LIBRARY_EXTENSION);
|
||||
static ProviderLibrary s_library_tensorrt(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_tensorrt") LIBRARY_EXTENSION
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
Loading…
Reference in a new issue