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/1.7.4~974 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c6e53cfc4636f3d0390cc65cfa469ed12a4e4483;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Allow for Vulkan build with Accelerate. Closes #5304 --- diff --git a/ggml.c b/ggml.c index a79db8da..b90c7df2 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)