Spaces:
Running
Running
Allow for Vulkan build with Accelerate.
Browse files
ggml.c
CHANGED
|
@@ -273,6 +273,8 @@ inline static void * ggml_calloc(size_t num, size_t size) {
|
|
| 273 |
#include <Accelerate/Accelerate.h>
|
| 274 |
#if defined(GGML_USE_CLBLAST) // allow usage of CLBlast alongside Accelerate functions
|
| 275 |
#include "ggml-opencl.h"
|
|
|
|
|
|
|
| 276 |
#endif
|
| 277 |
#elif defined(GGML_USE_OPENBLAS)
|
| 278 |
#if defined(GGML_BLAS_USE_MKL)
|
|
|
|
| 273 |
#include <Accelerate/Accelerate.h>
|
| 274 |
#if defined(GGML_USE_CLBLAST) // allow usage of CLBlast alongside Accelerate functions
|
| 275 |
#include "ggml-opencl.h"
|
| 276 |
+
#elif defined(GGML_USE_VULKAN)
|
| 277 |
+
#include "ggml-vulkan.h"
|
| 278 |
#endif
|
| 279 |
#elif defined(GGML_USE_OPENBLAS)
|
| 280 |
#if defined(GGML_BLAS_USE_MKL)
|