diff options
author | Cebtenzzre <cebtenzzre@gmail.com> | 2023-09-15 16:59:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 16:59:49 -0400 |
commit | e6616cf0db2b63189fc34d0076f654af9adecdf8 (patch) | |
tree | 5a5d518c2e576972ee097297ed1551b66880914b /examples/quantize-stats | |
parent | 3aefaab9e59335ebb07d5205dbc8633efd680e58 (diff) |
examples : add compiler version and target to build info (#2998)
Diffstat (limited to 'examples/quantize-stats')
-rw-r--r-- | examples/quantize-stats/CMakeLists.txt | 1 | ||||
-rw-r--r-- | examples/quantize-stats/quantize-stats.cpp | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/quantize-stats/CMakeLists.txt b/examples/quantize-stats/CMakeLists.txt index c5c39405..db182e26 100644 --- a/examples/quantize-stats/CMakeLists.txt +++ b/examples/quantize-stats/CMakeLists.txt @@ -2,4 +2,5 @@ set(TARGET quantize-stats) add_executable(${TARGET} quantize-stats.cpp) install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT}) +target_include_directories(${TARGET} PRIVATE ../../common) target_compile_features(${TARGET} PRIVATE cxx_std_11) diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp index bfe70889..9f930ded 100644 --- a/examples/quantize-stats/quantize-stats.cpp +++ b/examples/quantize-stats/quantize-stats.cpp @@ -1,7 +1,6 @@ -#include "ggml.h" -#include "build-info.h" - #define LLAMA_API_INTERNAL +#include "common.h" +#include "ggml.h" #include "llama.h" #include <algorithm> @@ -299,7 +298,7 @@ int main(int argc, char ** argv) { return 1; } - fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT); + print_build_info(); // load the model fprintf(stderr, "Loading model\n"); |