From 0b1eea99c3843b4c492f1dd43bcff8c55b9889ec Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 8 Feb 2025 14:01:20 +0100 Subject: gnu: llama-cpp: Prevent undefined behavior. * gnu/packages/patches/llama-cpp-vulkan-optional.patch: Modify. Change-Id: I58816f098a0da2b75cea5f90bda91bcf0bfe60d1 --- gnu/packages/patches/llama-cpp-vulkan-optional.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gnu/packages/patches/llama-cpp-vulkan-optional.patch') diff --git a/gnu/packages/patches/llama-cpp-vulkan-optional.patch b/gnu/packages/patches/llama-cpp-vulkan-optional.patch index 0d62b5cf14..43a49b6a02 100644 --- a/gnu/packages/patches/llama-cpp-vulkan-optional.patch +++ b/gnu/packages/patches/llama-cpp-vulkan-optional.patch @@ -3,6 +3,21 @@ Date: 2025-01-29 License: Expat Subject: Make Vulkan optional +See also: + +diff -ru orig/llama.cpp/ggml/include/ggml-vulkan.h llama.cpp/ggml/include/ggml-vulkan.h +--- orig/llama.cpp/ggml/include/ggml-vulkan.h 2025-01-29 10:24:10.894476682 +0100 ++++ llama.cpp/ggml/include/ggml-vulkan.h 2025-02-07 18:28:34.509509638 +0100 +@@ -10,8 +10,6 @@ + #define GGML_VK_NAME "Vulkan" + #define GGML_VK_MAX_DEVICES 16 + +-GGML_BACKEND_API void ggml_vk_instance_init(void); +- + // backend API + GGML_BACKEND_API ggml_backend_t ggml_backend_vk_init(size_t dev_num); + +diff -ru orig/llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp --- orig/llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp 2025-01-29 10:24:10.922476480 +0100 +++ llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp 2025-01-29 22:33:19.955087552 +0100 @@ -8174,8 +8174,13 @@ -- cgit v1.2.3