]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Allow for Vulkan build with Accelerate.
authorMathijs de Bruin <redacted>
Sat, 3 Feb 2024 17:56:46 +0000 (17:56 +0000)
committerGeorgi Gerganov <redacted>
Thu, 22 Feb 2024 13:12:35 +0000 (15:12 +0200)
Closes #5304

ggml.c

diff --git a/ggml.c b/ggml.c
index a79db8daf58833201e70b4ccc2cff71fbe4ff4cd..b90c7df2ca5ea4bee546a57f3405d7cbe866d6a8 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)