mirror of
https://github.com/typesense/typesense.git
synced 2025-05-21 22:33:27 +08:00
Remove logs and use RTLD_LAZY
This commit is contained in:
parent
c9259731c8
commit
666caf8eaa
@ -15,9 +15,8 @@ TextEmbedder::TextEmbedder(const std::string& model_name) {
|
||||
if(provider == "CUDAExecutionProvider") {
|
||||
|
||||
// check existence of so file
|
||||
void* handle = dlopen("libonnxruntime_providers_cuda.so", RTLD_NOW | RTLD_GLOBAL);
|
||||
void* handle = dlopen("libonnxruntime_providers_cuda.so", RTLD_LAZY);
|
||||
if(!handle) {
|
||||
LOG(ERROR) << "Cannot load libonnxruntime_providers_cuda.so";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user