summaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
authorMathijs de Bruin <mathijs@mathijsfietst.nl>2024-02-03 17:56:46 +0000
committerPhilip Taron <philip.taron@gmail.com>2024-02-19 14:49:49 -0800
commit5dde5408978eda22242b87e22e306d1c2d1a5834 (patch)
tree711907370bbc337b9c5926dfcf4aeed8ef581432 /ggml.c
parent40c3a6c1e11040088b4a1ce0abc4651cb3011dd4 (diff)
Allow for Vulkan build with Accelerate.
Closes #5304
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index 4ee2c5e1..d129df50 100644
--- 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)