]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : fix missing -O3
authorGeorgi Gerganov <redacted>
Wed, 26 Jun 2024 18:20:45 +0000 (21:20 +0300)
committerGeorgi Gerganov <redacted>
Wed, 26 Jun 2024 18:21:12 +0000 (21:21 +0300)
same as https://github.com/ggerganov/llama.cpp/pull/8143

Makefile

index ea51ef6a32751614933ef6c3eff5abe31c81c8e8..36fe7b7efb574ded3a5532caa2edea7b00781a70 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -251,7 +251,10 @@ ifdef WHISPER_DEBUG
                MK_CPPFLAGS += -D_GLIBCXX_ASSERTIONS
        endif
 else
-       MK_CPPFLAGS += -DNDEBUG
+       MK_CPPFLAGS   += -DNDEBUG
+       MK_CFLAGS     += -O3
+       MK_CXXFLAGS   += -O3
+       MK_NVCCFLAGS  += -O3
 endif
 
 ifdef WHISPER_SANITIZE_THREAD