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

Check presense of shared generic onnx lib

ozanarmagan8692486269b6
diff --git a/src/text_embedder.cpp b/src/text_embedder.cpp
index d4bd5471..b2adeda5 100644
--- a/src/text_embedder.cpp
+++ b/src/text_embedder.cpp
@@ -14,10 +14,10 @@ TextEmbedder::TextEmbedder(const std::string& model_name) {
for(auto& provider : providers) {
if(provider == "CUDAExecutionProvider") {
- // check existence of cuda
- void* handle = dlopen("libcudnn.so", RTLD_NOW | RTLD_GLOBAL);
+ // check existence of shared lib
+ void* handle = dlopen("libonnxruntime_providers_shared.so", RTLD_NOW | RTLD_GLOBAL);
if(!handle) {
- LOG(ERROR) << "Error loading CUDA: " << dlerror();
+ LOG(INFO) << "ONNX shared libs: off";
continue;
}