Skip to content

Commit 2cd4cbc

Browse files
committed
deps(whisper.cpp): update to latest commit
- Update include path to add ggml - Update linker options to add gml and libgomp Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 6f5b671 commit 2cd4cbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp
1616
RWKV_VERSION?=661e7ae26d442f5cfebd2a0881b44e8c55949ec6
1717

1818
# whisper.cpp version
19-
WHISPER_CPP_VERSION?=b29b3b29240aac8b71ce8e5a4360c1f1562ad66f
19+
WHISPER_CPP_VERSION?=c118733a29ad4a984015a5c08fd585086d01087a
2020

2121
# bert.cpp version
2222
BERT_VERSION?=710044b124545415f555e4260d16b146c725a6e4
@@ -36,6 +36,7 @@ export CMAKE_ARGS?=
3636

3737
CGO_LDFLAGS?=
3838
CGO_LDFLAGS_WHISPER?=
39+
CGO_LDFLAGS_WHISPER+=-lggml -lgomp
3940
CUDA_LIBPATH?=/usr/local/cuda/lib64/
4041
GO_TAGS?=
4142
BUILD_ID?=
@@ -248,7 +249,7 @@ sources/whisper.cpp:
248249
cd sources/whisper.cpp && git checkout -b build $(WHISPER_CPP_VERSION) && git submodule update --init --recursive --depth 1
249250

250251
sources/whisper.cpp/libwhisper.a: sources/whisper.cpp
251-
cd sources/whisper.cpp && $(MAKE) libwhisper.a
252+
cd sources/whisper.cpp && $(MAKE) libwhisper.a libggml.a
252253

253254
get-sources: sources/go-llama.cpp sources/gpt4all sources/go-piper sources/go-rwkv.cpp sources/whisper.cpp sources/go-bert.cpp sources/go-stable-diffusion sources/go-tiny-dream
254255

@@ -792,7 +793,7 @@ backend-assets/grpc/tinydream: sources/go-tiny-dream sources/go-tiny-dream/libti
792793
$(GOCMD) build -ldflags "$(LD_FLAGS)" -tags "$(GO_TAGS)" -o backend-assets/grpc/tinydream ./backend/go/image/tinydream
793794

794795
backend-assets/grpc/whisper: sources/whisper.cpp sources/whisper.cpp/libwhisper.a backend-assets/grpc
795-
CGO_LDFLAGS="$(CGO_LDFLAGS) $(CGO_LDFLAGS_WHISPER)" C_INCLUDE_PATH=$(CURDIR)/sources/whisper.cpp LIBRARY_PATH=$(CURDIR)/sources/whisper.cpp \
796+
CGO_LDFLAGS="$(CGO_LDFLAGS) $(CGO_LDFLAGS_WHISPER)" C_INCLUDE_PATH="$(CURDIR)/sources/whisper.cpp/include:$(CURDIR)/sources/whisper.cpp/ggml/include" LIBRARY_PATH=$(CURDIR)/sources/whisper.cpp \
796797
$(GOCMD) build -ldflags "$(LD_FLAGS)" -tags "$(GO_TAGS)" -o backend-assets/grpc/whisper ./backend/go/transcribe/
797798

798799
backend-assets/grpc/local-store: backend-assets/grpc

0 commit comments

Comments
 (0)