Skip to content

Commit e4cf982

Browse files
slarenB1gM8c
andauthored
Fix cuda compilation (#1128)
* Fix: Issue with CUBLAS compilation error due to missing -fPIC flag --------- Co-authored-by: B1gM8c <[email protected]>
1 parent c4fe84f commit e4cf982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ ifdef LLAMA_CUBLAS
109109
LDFLAGS += -lcublas -lculibos -lcudart -lcublasLt -lpthread -ldl -lrt -L/usr/local/cuda/lib64
110110
OBJS += ggml-cuda.o
111111
NVCC = nvcc
112-
NVCCFLAGS = --forward-unknown-to-host-linker -arch=native
112+
NVCCFLAGS = --forward-unknown-to-host-compiler -arch=native
113113
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
114-
$(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -c $< -o $@
114+
$(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@
115115
endif
116116
ifdef LLAMA_GPROF
117117
CFLAGS += -pg

0 commit comments

Comments
 (0)