aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorslaren <2141330+slaren@users.noreply.github.com>2023-04-24 17:29:58 +0200
committerGitHub <noreply@github.com>2023-04-24 17:29:58 +0200
commite4cf982e0d4fcfbb4b977a52dbeacd115da10c3b (patch)
tree72de5bf138028139548e2c75b7be92b390b3228f /Makefile
parentc4fe84fb0d28851a5c10e5a633f82ae2ba3b7fae (diff)
Fix cuda compilation (#1128)
* Fix: Issue with CUBLAS compilation error due to missing -fPIC flag --------- Co-authored-by: B1gM8c <89020353+B1gM8c@users.noreply.github.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0c7b654..8fbb19c 100644
--- a/Makefile
+++ b/Makefile
@@ -109,9 +109,9 @@ ifdef LLAMA_CUBLAS
LDFLAGS += -lcublas -lculibos -lcudart -lcublasLt -lpthread -ldl -lrt -L/usr/local/cuda/lib64
OBJS += ggml-cuda.o
NVCC = nvcc
- NVCCFLAGS = --forward-unknown-to-host-linker -arch=native
+ NVCCFLAGS = --forward-unknown-to-host-compiler -arch=native
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
- $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -c $< -o $@
+ $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@
endif
ifdef LLAMA_GPROF
CFLAGS += -pg