Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Remove logs and use RTLD_LAZY

ozanarmagan666caf8eaab6
diff --git a/src/text_embedder.cpp b/src/text_embedder.cpp
index 080a2cfb..ea1d5b03 100644
--- a/src/text_embedder.cpp
+++ b/src/text_embedder.cpp
@@ -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;
}