]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Allow for Vulkan build with Accelerate.
authorMathijs de Bruin <redacted>
Sat, 3 Feb 2024 17:56:46 +0000 (17:56 +0000)
committerPhilip Taron <redacted>
Mon, 19 Feb 2024 22:49:49 +0000 (14:49 -0800)
Closes #5304

ggml.c

diff --git a/ggml.c b/ggml.c
index 4ee2c5e11a0025a1509a10cef75fa0375d4cd252..d129df50548a354a2a7dadab356201d4ff32f386 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -273,6 +273,8 @@ inline static void * ggml_calloc(size_t num, size_t size) {
 #include <Accelerate/Accelerate.h>
 #if defined(GGML_USE_CLBLAST) // allow usage of CLBlast alongside Accelerate functions
 #include "ggml-opencl.h"
+#elif defined(GGML_USE_VULKAN)
+#include "ggml-vulkan.h"
 #endif
 #elif defined(GGML_USE_OPENBLAS)
 #if defined(GGML_BLAS_USE_MKL)