mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-28 22:44:59 +00:00
fix(whisper.cpp): Add stubs and -lcuda
This commit is contained in:
parent
0663f66205
commit
b790fca180
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -91,10 +91,13 @@ ifeq ($(BUILD_TYPE),openblas)
|
||||||
export WHISPER_OPENBLAS=1
|
export WHISPER_OPENBLAS=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(BUILD_TYPE),cublas)
|
ifeq ($(BUILD_TYPE),cublas)
|
||||||
CGO_LDFLAGS+=-lcublas -lcudart -lculibos -lcublasLt -L$(CUDA_LIBPATH)
|
CGO_LDFLAGS+=-lcublas -lcudart -lculibos -lcublasLt -L$(CUDA_LIBPATH)
|
||||||
export LLAMA_CUBLAS=1
|
export LLAMA_CUBLAS=1
|
||||||
|
# required by whisper.cpp
|
||||||
export WHISPER_CUBLAS=1
|
export WHISPER_CUBLAS=1
|
||||||
|
CGO_LDFLAGS+=-L$(CUDA_PATH)/stubs -lcuda
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BUILD_TYPE),hipblas)
|
ifeq ($(BUILD_TYPE),hipblas)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue