Explorar el Código

Allow for Vulkan build with Accelerate.

Closes #5304
Mathijs de Bruin hace 1 año
padre
commit
5dde540897
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      ggml.c

+ 2 - 0
ggml.c

@@ -273,6 +273,8 @@ inline static void * ggml_calloc(size_t num, size_t size) {
 #include <Accelerate/Accelerate.h>
 #include <Accelerate/Accelerate.h>
 #if defined(GGML_USE_CLBLAST) // allow usage of CLBlast alongside Accelerate functions
 #if defined(GGML_USE_CLBLAST) // allow usage of CLBlast alongside Accelerate functions
 #include "ggml-opencl.h"
 #include "ggml-opencl.h"
+#elif defined(GGML_USE_VULKAN)
+#include "ggml-vulkan.h"
 #endif
 #endif
 #elif defined(GGML_USE_OPENBLAS)
 #elif defined(GGML_USE_OPENBLAS)
 #if defined(GGML_BLAS_USE_MKL)
 #if defined(GGML_BLAS_USE_MKL)