From 3c960953fd30f0b2343e6c6cfc0cff55b6c08893 Mon Sep 17 00:00:00 2001 From: lindeer Date: Sat, 24 Feb 2024 09:30:21 +0800 Subject: [PATCH] fix UNAME_M --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d18c35f8a..e03607374 100644 --- a/Makefile +++ b/Makefile @@ -382,9 +382,8 @@ endif # LLAMA_BLIS ifdef LLAMA_CUBLAS CUDA_PATH ?= /usr/local/cuda - MK_ARCH = $(shell uname -m) - MK_CPPFLAGS += -DGGML_USE_CUBLAS -I$(CUDA_PATH)/include -I/opt/cuda/include -I$(CUDA_PATH)/targets/$(MK_ARCH)-linux/include - MK_LDFLAGS += -lcuda -lcublas -lculibos -lcudart -lcublasLt -lpthread -ldl -lrt -L$(CUDA_PATH)/lib64 -L/opt/cuda/lib64 -L/usr/lib64 -L$(CUDA_PATH)/targets/$(MK_ARCH)-linux/lib -L/usr/lib/wsl/lib + MK_CPPFLAGS += -DGGML_USE_CUBLAS -I$(CUDA_PATH)/include -I/opt/cuda/include -I$(CUDA_PATH)/targets/$(UNAME_M)-linux/include + MK_LDFLAGS += -lcuda -lcublas -lculibos -lcudart -lcublasLt -lpthread -ldl -lrt -L$(CUDA_PATH)/lib64 -L/opt/cuda/lib64 -L/usr/lib64 -L$(CUDA_PATH)/targets/$(UNAME_M)-linux/lib -L/usr/lib/wsl/lib OBJS += ggml-cuda.o MK_NVCCFLAGS += -use_fast_math ifdef LLAMA_FATAL_WARNINGS