From 429aa9b94f2598e4a3f50c74a7281131e2a8ac57 Mon Sep 17 00:00:00 2001 From: Gilad S Date: Sat, 7 Dec 2024 02:06:34 +0200 Subject: [PATCH] fix: Windows search path --- ggml/src/ggml-backend-reg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml/src/ggml-backend-reg.cpp b/ggml/src/ggml-backend-reg.cpp index 358aff0ec..ebb7bdefc 100644 --- a/ggml/src/ggml-backend-reg.cpp +++ b/ggml/src/ggml-backend-reg.cpp @@ -458,7 +458,11 @@ static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent, search_paths.push_back("./"); search_paths.push_back(get_executable_path()); } else { +#if defined(_WIN32) + search_paths.push_back(std::string(user_search_path) + "\\"); +#else search_paths.push_back(std::string(user_search_path) + "/"); +#endif } int best_score = 0;