diff --git a/gpt4all-backend/dlhandle.h b/gpt4all-backend/dlhandle.h index c9e3f70e..c841b039 100644 --- a/gpt4all-backend/dlhandle.h +++ b/gpt4all-backend/dlhandle.h @@ -75,7 +75,7 @@ public: Dlhandle() : chandle(nullptr) {} Dlhandle(const std::string& fpath) { - chandle = LoadLibraryA(fpath.c_str()); + chandle = LoadLibraryExA(fpath.c_str(), NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); if (!chandle) { throw Exception("dlopen(\""+fpath+"\"): Error"); } diff --git a/gpt4all-backend/llama.cpp-mainline b/gpt4all-backend/llama.cpp-mainline index 4cdaa3c9..ced23198 160000 --- a/gpt4all-backend/llama.cpp-mainline +++ b/gpt4all-backend/llama.cpp-mainline @@ -1 +1 @@ -Subproject commit 4cdaa3c9cb2d649f45a928d65d900d6b6bb5be3a +Subproject commit ced231980e0f88b9c7b454c456256c71c4f3cb75