]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make : restore build-info.h dependency for several targets (#3205)
authorCebtenzzre <redacted>
Mon, 18 Sep 2023 14:03:53 +0000 (10:03 -0400)
committerGitHub <redacted>
Mon, 18 Sep 2023 14:03:53 +0000 (10:03 -0400)
Makefile
common/common.h
examples/benchmark/benchmark-matmult.cpp
examples/embd-input/embd-input-lib.cpp
examples/embedding/embedding.cpp
examples/perplexity/perplexity.cpp
examples/quantize-stats/quantize-stats.cpp
examples/quantize/quantize.cpp
examples/save-load-state/save-load-state.cpp

index dc8ae380756530ac88e4d0f46212605c5b3f5e6e..e07db8afa16f509bcf2e733b422616d77b0af19b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -514,22 +514,22 @@ main: examples/main/main.cpp                                  build-info.h ggml.
        @echo '====  Run ./main -h for help.  ===='
        @echo
 
-simple: examples/simple/simple.cpp                            ggml.o llama.o common.o $(OBJS)
+simple: examples/simple/simple.cpp                            build-info.h ggml.o llama.o common.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
-quantize: examples/quantize/quantize.cpp                      ggml.o llama.o $(OBJS)
+quantize: examples/quantize/quantize.cpp                      build-info.h ggml.o llama.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
-quantize-stats: examples/quantize-stats/quantize-stats.cpp    ggml.o llama.o $(OBJS)
+quantize-stats: examples/quantize-stats/quantize-stats.cpp    build-info.h ggml.o llama.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
-perplexity: examples/perplexity/perplexity.cpp                ggml.o llama.o common.o $(OBJS)
+perplexity: examples/perplexity/perplexity.cpp                build-info.h ggml.o llama.o common.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
-embedding: examples/embedding/embedding.cpp                   ggml.o llama.o common.o $(OBJS)
+embedding: examples/embedding/embedding.cpp                   build-info.h ggml.o llama.o common.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
-save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o common.o $(OBJS)
+save-load-state: examples/save-load-state/save-load-state.cpp build-info.h ggml.o llama.o common.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
 server: examples/server/server.cpp examples/server/httplib.h examples/server/json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp build-info.h ggml.o llama.o common.o grammar-parser.o $(OBJS)
@@ -582,7 +582,7 @@ build-info.h: $(wildcard .git/index) scripts/build-info.sh
 
 tests: $(TEST_TARGETS)
 
-benchmark-matmult: examples/benchmark/benchmark-matmult.cpp ggml.o $(OBJS)
+benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
        ./$@
 
index f9dfd4a2c524cdb47e822f587c0a2d60b50d0c5d..18aea38cee28c19e960e5da00b32e550465f4105 100644 (file)
@@ -3,7 +3,6 @@
 #pragma once
 
 #include "llama.h"
-#include "build-info.h"
 
 #define LOG_NO_FILE_LINE_FUNCTION
 #include "log.h"
index 561309acb8f91bfe6623ffe4d31359f6f66c8d53..b16ad24d3414ade5c444df23ee0e67cec34fa66d 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "ggml.h"
 
index fc6e44eb2068016ce971fcd22bfefe6729f3d68c..c995eef3514a051621e21f67c5da9d6eefc3e321 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "embd-input.h"
 
index 0788f362c7460cba07932496ac9cb9e72e5a36eb..27d605f4e13d69f62432ac1be795fded50d6ff81 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "llama.h"
 
index 4958cdfb9a392efb84a8799990c14940bb624fe8..2b375e34e7234685f70240a4c889dfc9dcf6cad7 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "llama.h"
 
index 9f930dede4bcf830f09fffe23e851e9184ef77d7..94edb94d958d06d14e18436423a977f04b86b49f 100644 (file)
@@ -1,4 +1,5 @@
 #define LLAMA_API_INTERNAL
+#include "build-info.h"
 #include "common.h"
 #include "ggml.h"
 #include "llama.h"
index acb79e69014bbc4c9a08be2d7e60ad94262e6f53..1c1d957e63d5b33430ef327ba388d7478071ecfa 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "llama.h"
 
index eac307904fbc13844168b64a95a7e741799363dd..95527bb863524f80e58fccff86c967a70b89995b 100644 (file)
@@ -1,3 +1,4 @@
+#include "build-info.h"
 #include "common.h"
 #include "llama.h"