]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
Introduce backend GUIDs (ggml/743)
authorUEXTM.com <redacted>
Sat, 24 Feb 2024 16:27:36 +0000 (11:27 -0500)
committerGeorgi Gerganov <redacted>
Sun, 25 Feb 2024 17:58:45 +0000 (19:58 +0200)
commit1cb64f7368f6c1314ecd01fdafe1b2a0fe233e02
treefe92cc341b97fcacf848f55d558861b1c766399a
parentf18738f247d168c14f87386a62e9854d02e1b04e
Introduce backend GUIDs (ggml/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>
ggml-backend-impl.h
ggml-backend.c
ggml-backend.h
ggml-cuda.cu
ggml-kompute.cpp
ggml-metal.m
ggml-sycl.cpp
ggml-vulkan.cpp
ggml.c
ggml.h