Skip to content
Discussion options

You must be logged in to vote

If by backend you mean hardware accelerator or GPU, unfortunately I did not find any documentation on it but I did manage to make it register a backend with operations.

Backends are contained within the ggml/src/ggml-YOUR-BACKEND-NAME directory. You will have to self-provide the CMakeLists.txt to compile your relevant backend and it has to contain the following functions to register it properly.

  1. Backend Registration

Inform GGML that you have a backend, and provide the necessary interface for GGML to interact with it.

ggml_backend_reg_t ggml_backend_YOUR_BACKEND_NAME_reg(void) {
    static struct ggml_backend_reg ggml_backend_YOUR_BACKEND_NAME_reg = {
        /* .api_version = */ GGML_YO…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yuenyu1
Comment options

Answer selected by yuenyu1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants