]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: LLAMA_CUBLAS=1 undefined reference 'shm_open' (#1080)
author源文雨 <redacted>
Thu, 20 Apr 2023 13:28:43 +0000 (21:28 +0800)
committerGitHub <redacted>
Thu, 20 Apr 2023 13:28:43 +0000 (15:28 +0200)
Makefile

index 4bf481aa28d096af01e453506437f8744ff84013..8483d66ce4a7d46eecac1eb00f614572c01f2b55 100644 (file)
--- 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 $@ $<