]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Introduce backend GUIDs (ggml/743)
authorUEXTM.com <redacted>
Sat, 24 Feb 2024 16:27:36 +0000 (11:27 -0500)
committerGeorgi Gerganov <redacted>
Wed, 28 Feb 2024 09:17:05 +0000 (11:17 +0200)
commit5f706718566e3a5147916dc381f3b99de0ffad47
treea8375d9ea4eae5abac38cc0aba29fdedbf4fe9f5
parenta693bea1e6762a17b78b6ddf4611e54136941ea2
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