aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author源文雨 <41315874+fumiama@users.noreply.github.com>2023-04-20 21:28:43 +0800
committerGitHub <noreply@github.com>2023-04-20 15:28:43 +0200
commit5addcb120cf2682c7ede0b1c520592700d74c87c (patch)
tree5c6ec1593d5022d05427d3c2d7b530d24b07e0bb /Makefile
parentc8c2c524827be8fd681a63f0e5a697b0bf4c587b (diff)
fix: LLAMA_CUBLAS=1 undefined reference 'shm_open' (#1080)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4bf481a..8483d66 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ ifdef LLAMA_OPENBLAS
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
+ LDFLAGS += -lcublas_static -lculibos -lcudart_static -lcublasLt_static -lpthread -ldl -lrt -L/usr/local/cuda/lib64
OBJS += ggml-cuda.o
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
nvcc -arch=native -c -o $@ $<