]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make : fix CUDA build (#5580)
authorGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 11:41:51 +0000 (13:41 +0200)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 11:41:51 +0000 (13:41 +0200)
Makefile

index 59352eb5325975861ca9530050ce8d8b5ad0e680..29fd2ca9c07fb414c92f25d9707b9fc920859c09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,9 +97,10 @@ endif
 #
 
 # keep standard at C11 and C++11
-MK_CPPFLAGS = -I. -Icommon
-MK_CFLAGS   = -std=c11   -fPIC
-MK_CXXFLAGS = -std=c++11 -fPIC
+MK_CPPFLAGS  = -I. -Icommon
+MK_CFLAGS    = -std=c11   -fPIC
+MK_CXXFLAGS  = -std=c++11 -fPIC
+MK_NVCCFLAGS = -std=c++11
 
 # -Ofast tends to produce faster code, but may not be available for some compilers.
 ifdef LLAMA_FAST