@@ -16,7 +16,7 @@ RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp
16
16
RWKV_VERSION? =661e7ae26d442f5cfebd2a0881b44e8c55949ec6
17
17
18
18
# whisper.cpp version
19
- WHISPER_CPP_VERSION? =b29b3b29240aac8b71ce8e5a4360c1f1562ad66f
19
+ WHISPER_CPP_VERSION? =c118733a29ad4a984015a5c08fd585086d01087a
20
20
21
21
# bert.cpp version
22
22
BERT_VERSION? =710044b124545415f555e4260d16b146c725a6e4
@@ -36,6 +36,7 @@ export CMAKE_ARGS?=
36
36
37
37
CGO_LDFLAGS? =
38
38
CGO_LDFLAGS_WHISPER? =
39
+ CGO_LDFLAGS_WHISPER+ =-lggml -lgomp
39
40
CUDA_LIBPATH? =/usr/local/cuda/lib64/
40
41
GO_TAGS? =
41
42
BUILD_ID? =
@@ -248,7 +249,7 @@ sources/whisper.cpp:
248
249
cd sources/whisper.cpp && git checkout -b build $(WHISPER_CPP_VERSION ) && git submodule update --init --recursive --depth 1
249
250
250
251
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
252
253
253
254
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
254
255
@@ -792,7 +793,7 @@ backend-assets/grpc/tinydream: sources/go-tiny-dream sources/go-tiny-dream/libti
792
793
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/tinydream ./backend/go/image/tinydream
793
794
794
795
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 \
796
797
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/whisper ./backend/go/transcribe/
797
798
798
799
backend-assets/grpc/local-store : backend-assets/grpc
0 commit comments