From: Georgi Gerganov Date: Fri, 15 Nov 2024 06:40:47 +0000 (+0200) Subject: whisper : fix build (#0) X-Git-Tag: upstream/1.7.4~222 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5089ab2d6a544a6624fb4d7873328d24e4132253;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : fix build (#0) --- 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