]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml: unify backend logging mechanism (#9709)
authorbandoti <redacted>
Thu, 3 Oct 2024 15:39:03 +0000 (12:39 -0300)
committerGitHub <redacted>
Thu, 3 Oct 2024 15:39:03 +0000 (17:39 +0200)
commitd6fe7abf04e8ec5240dead6e2773ed1b7e7495d3
tree12be5fbeceb705c12383b99c186ac65d916f0f90
parente3c355ba654d4164c1c09e5d0dcacecb8b214af8
ggml: unify backend logging mechanism (#9709)

* Add scaffolding for ggml logging macros

* Metal backend now uses GGML logging

* Cuda backend now uses GGML logging

* Cann backend now uses GGML logging

* Add enum tag to parameters

* Use C memory allocation funcs

* Fix compile error

* Use GGML_LOG instead of GGML_PRINT

* Rename llama_state to llama_logger_state

* Prevent null format string

* Fix whitespace

* Remove log callbacks from ggml backends

* Remove cuda log statement
13 files changed:
ggml/include/ggml-backend.h
ggml/include/ggml-cann.h
ggml/include/ggml-cuda.h
ggml/include/ggml-metal.h
ggml/include/ggml.h
ggml/src/ggml-backend-impl.h
ggml/src/ggml-backend.cpp
ggml/src/ggml-cann.cpp
ggml/src/ggml-cuda.cu
ggml/src/ggml-impl.h
ggml/src/ggml-metal.m
ggml/src/ggml.c
src/llama.cpp