aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorZenix <zenixls2@gmail.com>2023-05-20 18:02:48 +0900
committerGitHub <noreply@github.com>2023-05-20 12:02:48 +0300
commit07e9ace0f9da424d82e75df969642522880feb92 (patch)
tree652979898352212059f9bef9778e52367ac8f268 /Makefile
parentec2e10c4443209da56b431b24dd0845b60e757fb (diff)
feature : add blis and other BLAS implementation support (#1502)
* feature: add blis support * feature: allow all BLA_VENDOR to be assigned in cmake arguments. align with whisper.cpp pr 927 * fix: version detection for BLA_SIZEOF_INTEGER, recover min version of cmake * Fix typo in INTEGER Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9ec879..cefa0b4 100644
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,10 @@ ifdef LLAMA_OPENBLAS
LDFLAGS += -lopenblas
endif
endif
+ifdef LLAMA_BLIS
+ CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/blis -I/usr/include/blis
+ LDFLAGS += -lblis -L/usr/local/lib
+endif
ifdef LLAMA_CUBLAS
CFLAGS += -DGGML_USE_CUBLAS -I/usr/local/cuda/include -I/opt/cuda/include -I$(CUDA_PATH)/targets/x86_64-linux/include
CXXFLAGS += -DGGML_USE_CUBLAS -I/usr/local/cuda/include -I/opt/cuda/include -I$(CUDA_PATH)/targets/x86_64-linux/include