From: 源文雨 Date: Thu, 20 Apr 2023 13:28:43 +0000 (+0800) Subject: fix: LLAMA_CUBLAS=1 undefined reference 'shm_open' (#1080) X-Git-Tag: gguf-v0.4.0~917 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5addcb120cf2682c7ede0b1c520592700d74c87c;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix: LLAMA_CUBLAS=1 undefined reference 'shm_open' (#1080) --- diff --git a/Makefile b/Makefile index 4bf481aa..8483d66c 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 $@ $<