Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 952d8a2

Browse files
authored
feat: log cortex.llamacpp version (#566)
1 parent 14cfcfe commit 952d8a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cortex-cpp/engines/cortex.llamacpp/engine.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cortex.llamacpp release version
22
set(VERSION 0.1.2)
33
set(ENGINE_VERSION v${VERSION})
4+
add_compile_definitions(CORTEX_LLAMACPP_VERSION="${VERSION}")
45

56
# MESSAGE("ENGINE_VERSION=" ${ENGINE_VERSION})
67

cortex-cpp/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ int main(int argc, char* argv[]) {
5151
#else
5252
LOG_INFO << "cortex-cpp version: undefined";
5353
#endif
54+
#ifdef CORTEX_LLAMACPP_VERSION
55+
LOG_INFO << "cortex.llamacpp version: " << CORTEX_LLAMACPP_VERSION;
56+
#endif
57+
5458
LOG_INFO << "Server started, listening at: " << host << ":" << port;
5559
LOG_INFO << "Please load your model";
5660
drogon::app().addListener(host, port);

0 commit comments

Comments
 (0)