Skip to content

Commit

Permalink
Experiment to see of unloading libonnxruntime_providers_qnn.so on Lin…
Browse files Browse the repository at this point in the history
…ux causes a crash
  • Loading branch information
adrianlizarraga committed Jan 11, 2025
1 parent b53881c commit 8dda435
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions onnxruntime/core/session/provider_bridge_ort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1783,12 +1783,7 @@ static ProviderLibrary s_library_tensorrt(LIBRARY_PREFIX ORT_TSTR("onnxruntime_p
static ProviderLibrary s_library_migraphx(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_migraphx") LIBRARY_EXTENSION);

// QNN EP can be built either as a static library or a shared library. Can safely define s_library_qnn even if static.
static ProviderLibrary s_library_qnn(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_qnn") LIBRARY_EXTENSION
#ifndef _WIN32
,
false /* unload - On Linux if we unload the qnn shared provider we crash */
#endif
);
static ProviderLibrary s_library_qnn(LIBRARY_PREFIX ORT_TSTR("onnxruntime_providers_qnn") LIBRARY_EXTENSION);

void UnloadSharedProviders() {
s_library_dnnl.Unload();
Expand Down

0 comments on commit 8dda435

Please sign in to comment.