8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b128d64 commit adc67b7Copy full SHA for adc67b7
ggml/src/ggml-backend-reg.cpp
@@ -574,4 +574,9 @@ void ggml_backend_load_all_from_path(const char * dir_path) {
574
ggml_backend_load_best("opencl", silent, dir_path);
575
ggml_backend_load_best("musa", silent, dir_path);
576
ggml_backend_load_best("cpu", silent, dir_path);
577
+ // check the environment variable GGML_BACKEND_PATH to load an out-of-tree backend
578
+ const char * backend_path = std::getenv("GGML_BACKEND_PATH");
579
+ if (backend_path) {
580
+ ggml_backend_load(backend_path);
581
+ }
582
}
0 commit comments