]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
tests : free llama context at the end of the test
authorGeorgi Gerganov <redacted>
Tue, 28 Mar 2023 16:51:55 +0000 (19:51 +0300)
committerGeorgi Gerganov <redacted>
Tue, 28 Mar 2023 16:51:55 +0000 (19:51 +0300)
CMakeLists.txt
tests/test-tokenizer-0.cpp

index 241be4c152421a3f85840ec1e08be3bdff824372..d7b0eba29a16c3abc35adac981e1dd0b5f852385 100644 (file)
@@ -129,13 +129,14 @@ if (LLAMA_ALL_WARNINGS)
             -Wshadow
             -Wstrict-prototypes
             -Wpointer-arith
+            -Wno-unused-function
         )
         set(cxx_flags
             -Wall
             -Wextra
             -Wpedantic
             -Wcast-qual
-            -Wdouble-promotion
+            -Wno-unused-function
         )
     else()
         # todo : msvc
index 382055324183136651ba310dada3a9558783908b..55b086daea59c07e42ef5b72e0c5b0570506f621 100644 (file)
@@ -77,5 +77,7 @@ int main(int argc, char **argv) {
         }
     }
 
+    llama_free(ctx);
+
     return 0;
 }