aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorslaren <2141330+slaren@users.noreply.github.com>2023-04-19 11:22:45 +0200
committerGitHub <noreply@github.com>2023-04-19 11:22:45 +0200
commit8944a1329648c57bb7d66851170938230587a52c (patch)
treea4b759e0a1ee93fa542dc708fc938b660ff13eac /Makefile
parent66674012389f9537140044290f8517bc4a5e0b74 (diff)
Add NVIDIA cuBLAS support (#1044)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 071d956..deb0d00 100644
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,10 @@ ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
LDFLAGS += -lopenblas
endif
+ifdef LLAMA_CUBLAS
+ CFLAGS += -DGGML_USE_CUBLAS -I/usr/local/cuda/include
+ LDFLAGS += -lcublas_static -lculibos -lcudart_static -lcublasLt_static -lpthread -ldl -L/usr/local/cuda/lib64
+endif
ifdef LLAMA_GPROF
CFLAGS += -pg
CXXFLAGS += -pg