log : print if build is debug [no ci]

This commit is contained in:
Georgi Gerganov 2024-09-13 11:15:01 +03:00
parent 2948768e25
commit 078be074a7
No known key found for this signature in database
GPG Key ID: BF970631944C16B7

View File

@ -369,8 +369,13 @@ void gpt_init() {
}
}, NULL);
#ifdef NDEBUG
const char * build_type = "";
#else
const char * build_type = " (debug)";
#endif
LOG_INF("build: %d (%s) with %s for %s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET);
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
}
std::string gpt_params_get_system_info(const gpt_params & params) {