From: Mathijs de Bruin Date: Sat, 3 Feb 2024 17:56:46 +0000 (+0000) Subject: Allow for Vulkan build with Accelerate. X-Git-Tag: upstream/0.0.4488~2281 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5dde5408978eda22242b87e22e306d1c2d1a5834;p=pkg%2Fggml%2Fsources%2Fllama.cpp Allow for Vulkan build with Accelerate. Closes #5304 --- 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 #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)