Skip to content

Commit 429aa9b

Browse files
committed
fix: Windows search path
1 parent 318600f commit 429aa9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-backend-reg.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,11 @@ static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent,
458458
search_paths.push_back("./");
459459
search_paths.push_back(get_executable_path());
460460
} else {
461+
#if defined(_WIN32)
462+
search_paths.push_back(std::string(user_search_path) + "\\");
463+
#else
461464
search_paths.push_back(std::string(user_search_path) + "/");
465+
#endif
462466
}
463467

464468
int best_score = 0;

0 commit comments

Comments
 (0)