@@ -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? =37a709f6558c6d9783199e2b8cbb136e1c41d346
19
+ WHISPER_CPP_VERSION? =a56f435fd475afd7edf02bfbf9f8c77f527198c2
20
20
21
21
# bert.cpp version
22
22
BERT_VERSION? =6abe312cded14042f6b7c3cd8edf082713334a4d
@@ -35,6 +35,7 @@ export STABLE_BUILD_TYPE?=$(BUILD_TYPE)
35
35
export CMAKE_ARGS? =
36
36
37
37
CGO_LDFLAGS? =
38
+ CGO_LDFLAGS_WHISPER? =
38
39
CUDA_LIBPATH? =/usr/local/cuda/lib64/
39
40
GO_TAGS? =
40
41
BUILD_ID? =git
@@ -88,10 +89,12 @@ ifeq ($(BUILD_TYPE),openblas)
88
89
export WHISPER_OPENBLAS=1
89
90
endif
90
91
92
+
91
93
ifeq ($(BUILD_TYPE ) ,cublas)
92
94
CGO_LDFLAGS+=-lcublas -lcudart -L$(CUDA_LIBPATH)
93
95
export LLAMA_CUBLAS=1
94
96
export WHISPER_CUBLAS=1
97
+ CGO_LDFLAGS_WHISPER+=-L$(CUDA_LIBPATH)/stubs/ -lcuda
95
98
endif
96
99
97
100
ifeq ($(BUILD_TYPE ) ,hipblas)
@@ -515,7 +518,7 @@ backend-assets/grpc/tinydream: sources/go-tiny-dream sources/go-tiny-dream/libti
515
518
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/tinydream ./backend/go/image/tinydream
516
519
517
520
backend-assets/grpc/whisper : sources/whisper.cpp sources/whisper.cpp/libwhisper.a backend-assets/grpc
518
- CGO_LDFLAGS=" $( CGO_LDFLAGS) " C_INCLUDE_PATH=$(CURDIR ) /sources/whisper.cpp LIBRARY_PATH=$(CURDIR ) /sources/whisper.cpp \
521
+ CGO_LDFLAGS=" $( CGO_LDFLAGS) $( CGO_LDFLAGS_WHISPER ) " C_INCLUDE_PATH=$(CURDIR ) /sources/whisper.cpp LIBRARY_PATH=$(CURDIR ) /sources/whisper.cpp \
519
522
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/whisper ./backend/go/transcribe/
520
523
521
524
grpcs : prepare $(GRPC_BACKENDS )
0 commit comments