Skip to content

Commit

Permalink
fix: add LLAMA_CUBLAS on BUILD_TYPE=cublas
Browse files Browse the repository at this point in the history
Thanks to @Thireus for noticing it.

See: #258
  • Loading branch information
mudler committed May 19, 2023
1 parent aa7a18f commit 512e1e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ BUILD_TYPE?=
CGO_LDFLAGS?=
CUDA_LIBPATH?=/usr/local/cuda/lib64/
STABLEDIFFUSION_VERSION?=c0748eca3642d58bcf9521108bcee46959c647dc

GO_TAGS?=

OPTIONAL_TARGETS?=
Expand All @@ -36,9 +35,9 @@ endif

ifeq ($(BUILD_TYPE),cublas)
CGO_LDFLAGS+=-lcublas -lcudart -L$(CUDA_LIBPATH)
export LLAMA_CUBLAS=1
endif


ifeq ($(GO_TAGS),stablediffusion)
OPTIONAL_TARGETS+=go-stable-diffusion/libstablediffusion.a
endif
Expand Down

0 comments on commit 512e1e2

Please sign in to comment.