We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e31d73c commit ed0ac1cCopy full SHA for ed0ac1c
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