]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : check returned fn ptrs from ggml_backend_reg_get_proc_address (#15893)
authorDaniel Bevenius <redacted>
Wed, 10 Sep 2025 03:33:58 +0000 (05:33 +0200)
committerGitHub <redacted>
Wed, 10 Sep 2025 03:33:58 +0000 (05:33 +0200)
commit86587da03bd78df8f4e7d8b111a0c1d2494d6ed0
tree41ef7f3e3f1df388bfa049380213d87ee9ef4a56
parentff02caf9eed261423289d1531a56536fbf57bfc2
llama : check returned fn ptrs from ggml_backend_reg_get_proc_address (#15893)

This commit adds check for two function pointers returned from
ggml_backend_reg_get_proc_address.

The motivation for this is that the function pointer could be nullptr if
the get proc address function changes in the future. This is also
consistent with all the other calls to ggml_backend_reg_get_proc_address
in the code base.
src/llama-context.cpp
src/llama.cpp