aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Gäßler <johannesg@5d6.de>2023-07-31 21:02:19 +0200
committerGitHub <noreply@github.com>2023-07-31 21:02:19 +0200
commit49e7cb5bb1f75c91dd5db7d2d88cbc11bd9ee0c5 (patch)
tree99c3db7b85fd0d2f854567028f3239d28824b28c
parentb772bba42e3bbca3cdab224456f8ff2ce427fd0b (diff)
CUDA: fixed LLAMA_FAST compilation option (#2473)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ebeadfd..100614b 100644
--- a/Makefile
+++ b/Makefile
@@ -243,7 +243,7 @@ ifdef LLAMA_CUDA_CCBIN
NVCCFLAGS += -ccbin $(LLAMA_CUDA_CCBIN)
endif
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
- $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@
+ $(NVCC) $(NVCCFLAGS) $(subst -Ofast,-O3,$(CXXFLAGS)) -Wno-pedantic -c $< -o $@
endif # LLAMA_CUBLAS
ifdef LLAMA_CLBLAST