Skip to content

Conversation

@giladgd
Copy link
Contributor

@giladgd giladgd commented Dec 7, 2024

This PR makes it possible to load all backends from a given search path instead of the default search paths.

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Dec 7, 2024
@giladgd giladgd changed the title feat: load all backends from a user-provided search path ggml: load all backends from a user-provided search path Dec 7, 2024
GGML_API void ggml_backend_unload(ggml_backend_reg_t reg);
// Load all known backends from dynamic libraries
GGML_API void ggml_backend_load_all(void);
GGML_API void ggml_backend_load_all_in_search_path(const char * search_path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking, ggml_backend_load_all_from_path may be a better name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@slaren slaren merged commit 43041d2 into ggml-org:master Dec 11, 2024
44 of 46 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
)

* feat: load all backends from a user-provided search path

* fix: Windows search path

* refactor: rename `ggml_backend_load_all_in_search_path` to `ggml_backend_load_all_from_path`

* refactor: rename `search_path` to `dir_path`

* fix: change `NULL` to `nullptr`

Co-authored-by: Diego Devesa <[email protected]>

* fix: change `NULL` to `nullptr`

---------

Co-authored-by: Diego Devesa <[email protected]>
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
)

* feat: load all backends from a user-provided search path

* fix: Windows search path

* refactor: rename `ggml_backend_load_all_in_search_path` to `ggml_backend_load_all_from_path`

* refactor: rename `search_path` to `dir_path`

* fix: change `NULL` to `nullptr`

Co-authored-by: Diego Devesa <[email protected]>

* fix: change `NULL` to `nullptr`

---------

Co-authored-by: Diego Devesa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants