Skip to content

Commit 76ca4f6

Browse files
committed
LLAMA_BUILD_NUMBER=>GGML_BUILD_NUMBER LLAMA_COMMIT=>GGML_BUILD_COMMIT
Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
1 parent 38d4930 commit 76ca4f6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

common/build-info.cpp.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ int LLAMA_BUILD_NUMBER = @LLAMA_BUILD_NUMBER@;
22
char const *LLAMA_COMMIT = "@LLAMA_BUILD_COMMIT@";
33
char const *LLAMA_COMPILER = "@BUILD_COMPILER@";
44
char const *LLAMA_BUILD_TARGET = "@BUILD_TARGET@";
5+
int GGML_BUILD_NUMBER = @GGML_BUILD_NUMBER@;
6+
char const *GGML_BUILD_COMMIT = "@GGML_BUILD_COMMIT@";

tests/test-backend-ops.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
#include <vector>
4040

4141
// External declarations for build info
42-
extern int LLAMA_BUILD_NUMBER;
43-
extern const char *LLAMA_COMMIT;
42+
extern int GGML_BUILD_NUMBER;
43+
extern const char *GGML_BUILD_COMMIT;
4444

4545
static void init_tensor_uniform(ggml_tensor * tensor, float min = -1.0f, float max = 1.0f) {
4646
size_t nels = ggml_nelements(tensor);
@@ -383,8 +383,8 @@ struct test_result {
383383
test_time = buf;
384384

385385
// Set build info
386-
build_commit = LLAMA_COMMIT;
387-
build_number = LLAMA_BUILD_NUMBER;
386+
build_commit = GGML_BUILD_COMMIT;
387+
build_number = GGML_BUILD_NUMBER;
388388
}
389389

390390
test_result(const std::string& backend_name, const std::string& op_name, const std::string& op_params,
@@ -401,8 +401,8 @@ struct test_result {
401401
test_time = buf;
402402

403403
// Set build info
404-
build_commit = LLAMA_COMMIT;
405-
build_number = LLAMA_BUILD_NUMBER;
404+
build_commit = GGML_BUILD_COMMIT;
405+
build_number = GGML_BUILD_NUMBER;
406406
}
407407

408408
static const std::vector<std::string> & get_fields() {

0 commit comments

Comments
 (0)