Skip to content

Commit 5addcb1

Browse files
authored
fix: LLAMA_CUBLAS=1 undefined reference 'shm_open' (#1080)
1 parent c8c2c52 commit 5addcb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ifdef LLAMA_OPENBLAS
102102
endif
103103
ifdef LLAMA_CUBLAS
104104
CFLAGS += -DGGML_USE_CUBLAS -I/usr/local/cuda/include
105-
LDFLAGS += -lcublas_static -lculibos -lcudart_static -lcublasLt_static -lpthread -ldl -L/usr/local/cuda/lib64
105+
LDFLAGS += -lcublas_static -lculibos -lcudart_static -lcublasLt_static -lpthread -ldl -lrt -L/usr/local/cuda/lib64
106106
OBJS += ggml-cuda.o
107107
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
108108
nvcc -arch=native -c -o $@ $<

0 commit comments

Comments
 (0)