mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix: add LLAMA_CUBLAS on BUILD_TYPE=cublas (#310)
This commit is contained in:
parent
19deea986a
commit
bf3d936aea
3
Makefile
3
Makefile
@ -16,7 +16,6 @@ BUILD_TYPE?=
|
|||||||
CGO_LDFLAGS?=
|
CGO_LDFLAGS?=
|
||||||
CUDA_LIBPATH?=/usr/local/cuda/lib64/
|
CUDA_LIBPATH?=/usr/local/cuda/lib64/
|
||||||
STABLEDIFFUSION_VERSION?=c0748eca3642d58bcf9521108bcee46959c647dc
|
STABLEDIFFUSION_VERSION?=c0748eca3642d58bcf9521108bcee46959c647dc
|
||||||
|
|
||||||
GO_TAGS?=
|
GO_TAGS?=
|
||||||
|
|
||||||
OPTIONAL_TARGETS?=
|
OPTIONAL_TARGETS?=
|
||||||
@ -36,9 +35,9 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BUILD_TYPE),cublas)
|
ifeq ($(BUILD_TYPE),cublas)
|
||||||
CGO_LDFLAGS+=-lcublas -lcudart -L$(CUDA_LIBPATH)
|
CGO_LDFLAGS+=-lcublas -lcudart -L$(CUDA_LIBPATH)
|
||||||
|
export LLAMA_CUBLAS=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(GO_TAGS),stablediffusion)
|
ifeq ($(GO_TAGS),stablediffusion)
|
||||||
OPTIONAL_TARGETS+=go-stable-diffusion/libstablediffusion.a
|
OPTIONAL_TARGETS+=go-stable-diffusion/libstablediffusion.a
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user