Skip to content

Commit a7db97e

Browse files
authored
chore(Makefile): default to non-native builds for llama.cpp (#4173)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent e0acc14 commit a7db97e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DETECT_LIBS?=true
88
# llama.cpp versions
99
GOLLAMA_REPO?=https://github.com/go-skynet/go-llama.cpp
1010
GOLLAMA_VERSION?=2b57a8ae43e4699d3dc5d1496a1ccd42922993be
11-
CPPLLAMA_VERSION?=db4cfd5dbc31c90f0d5c413a2e182d068b8ee308
11+
CPPLLAMA_VERSION?=ce2e59ba107cf71ed566040ff20a15d1c58e09c2
1212

1313
# go-rwkv version
1414
RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp
@@ -45,6 +45,7 @@ CGO_LDFLAGS_WHISPER+=-lggml
4545
CUDA_LIBPATH?=/usr/local/cuda/lib64/
4646
GO_TAGS?=
4747
BUILD_ID?=
48+
NATIVE?=false
4849

4950
TEST_DIR=/tmp/test
5051

@@ -83,6 +84,11 @@ ifndef UNAME_S
8384
UNAME_S := $(shell uname -s)
8485
endif
8586

87+
# IF native is false, we add -DGGML_NATIVE=OFF to CMAKE_ARGS
88+
ifeq ($(NATIVE),false)
89+
CMAKE_ARGS+=-DGGML_NATIVE=OFF
90+
endif
91+
8692
ifeq ($(OS),Darwin)
8793

8894
ifeq ($(OSX_SIGNING_IDENTITY),)

0 commit comments

Comments
 (0)