From b790fca180093cdce99574492aa2f251a8d75b80 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 18 Mar 2024 12:13:39 +0100 Subject: [PATCH] fix(whisper.cpp): Add stubs and -lcuda --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 06d9b084..1a67ce89 100644 --- a/Makefile +++ b/Makefile @@ -91,10 +91,13 @@ ifeq ($(BUILD_TYPE),openblas) export WHISPER_OPENBLAS=1 endif + ifeq ($(BUILD_TYPE),cublas) CGO_LDFLAGS+=-lcublas -lcudart -lculibos -lcublasLt -L$(CUDA_LIBPATH) export LLAMA_CUBLAS=1 +# required by whisper.cpp export WHISPER_CUBLAS=1 + CGO_LDFLAGS+=-L$(CUDA_PATH)/stubs -lcuda endif ifeq ($(BUILD_TYPE),hipblas)