mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-25 15:02:03 +00:00
Allow user to specify custom search path via $GPT4ALL_IMPLEMENTATIONS_PATH (#789)
This commit is contained in:
parent
ab56119470
commit
c4f9535fd0
@ -6,6 +6,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
static bool requires_avxonly() {
|
static bool requires_avxonly() {
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
@ -73,7 +74,8 @@ const std::vector<LLModel::Implementation> &LLModel::implementationList() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
search_in_directory(".");
|
const char *custom_impl_lookup_path = getenv("GPT4ALL_IMPLEMENTATIONS_PATH");
|
||||||
|
search_in_directory(custom_impl_lookup_path?custom_impl_lookup_path:".");
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
search_in_directory("../../../");
|
search_in_directory("../../../");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user