summaryrefslogtreecommitdiff
path: root/examples/perplexity/perplexity.cpp
diff options
context:
space:
mode:
authorCebtenzzre <cebtenzzre@gmail.com>2023-09-15 16:59:49 -0400
committerGitHub <noreply@github.com>2023-09-15 16:59:49 -0400
commite6616cf0db2b63189fc34d0076f654af9adecdf8 (patch)
tree5a5d518c2e576972ee097297ed1551b66880914b /examples/perplexity/perplexity.cpp
parent3aefaab9e59335ebb07d5205dbc8633efd680e58 (diff)
examples : add compiler version and target to build info (#2998)
Diffstat (limited to 'examples/perplexity/perplexity.cpp')
-rw-r--r--examples/perplexity/perplexity.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp
index 4620c43a..4958cdfb 100644
--- a/examples/perplexity/perplexity.cpp
+++ b/examples/perplexity/perplexity.cpp
@@ -1,6 +1,5 @@
#include "common.h"
#include "llama.h"
-#include "build-info.h"
#include <cmath>
#include <cstdio>
@@ -670,7 +669,7 @@ int main(int argc, char ** argv) {
params.n_ctx += params.ppl_stride/2;
}
- fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT);
+ print_build_info();
if (params.seed == LLAMA_DEFAULT_SEED) {
params.seed = time(NULL);