]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
Introduce backend GUIDs (#743)
authorUEXTM.com <redacted>
Sat, 24 Feb 2024 16:27:36 +0000 (11:27 -0500)
committerGitHub <redacted>
Sat, 24 Feb 2024 16:27:36 +0000 (17:27 +0100)
commit7c531538b3de534a52cd87b1dfe0af99c7d70058
tree35d2fbdb4477996b53134d15de719b89810f0fff
parent2ac4ea2fb71982178b3f2792b62942124e5e61c5
Introduce backend GUIDs (#743)

* Introduce backend GUIDs

Initial proposed implementation of backend GUIDs
(Discussed in https://github.com/ggerganov/ggml/pull/741)

Hardcoded CPU backend GUID (for now)
Change ggml_backend_is_cpu logic to use GUID

* Remove redundant functions

Remove redundant functions `ggml_backend_i::get_name` and `ggml_backend_guid` which are not desired for future expansion

* Add spaces to match style

Co-authored-by: slaren <redacted>
* Fix brace style to match

Co-authored-by: slaren <redacted>
* Add void to () in function signature

Co-authored-by: slaren <redacted>
* Add back ggml_backend_guid and make CPU_GUID a local static in ggml_backend_cpu_guid

* add guids to all backends

ggml-ci

---------

Co-authored-by: slaren <redacted>
include/ggml/ggml-backend.h
include/ggml/ggml.h
src/ggml-backend-impl.h
src/ggml-backend.c
src/ggml-cuda.cu
src/ggml-kompute.cpp
src/ggml-metal.m
src/ggml-sycl.cpp
src/ggml-vulkan.cpp
src/ggml.c