diff --git a/Makefile b/Makefile index 33f78470..a3835dd1 100644 --- a/Makefile +++ b/Makefile @@ -801,6 +801,7 @@ endif OBJ_GGML += \ ggml/src/ggml.o \ + ggml/src/ggml-cpu.o \ ggml/src/ggml-alloc.o \ ggml/src/ggml-backend.o \ ggml/src/ggml-quants.o \ @@ -916,6 +917,12 @@ ggml/src/ggml.o: \ ggml/include/ggml.h $(CC) $(CFLAGS) -c $< -o $@ +ggml/src/ggml-cpu.o: \ + ggml/src/ggml-cpu.c \ + ggml/include/ggml.h \ + ggml/src/ggml-common.h + $(CC) $(CFLAGS) -c $< -o $@ + ggml/src/ggml-alloc.o: \ ggml/src/ggml-alloc.c \ ggml/include/ggml.h \ diff --git a/src/whisper.cpp b/src/whisper.cpp index 754ff096..1c4965b6 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -4,6 +4,8 @@ #include "coreml/whisper-encoder.h" #endif +#include "ggml-cpu.h" + #ifdef GGML_USE_METAL #include "ggml-metal.h" #endif