Allow for Vulkan build with Accelerate.

Closes #5304
This commit is contained in:
Mathijs de Bruin 2024-02-03 17:56:46 +00:00 committed by Philip Taron
parent 40c3a6c1e1
commit 5dde540897

2
ggml.c
View File

@ -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)