| 363 | } |
| 364 | |
| 365 | void common_init() { |
| 366 | llama_log_set(common_log_default_callback, NULL); |
| 367 | |
| 368 | #ifdef NDEBUG |
| 369 | const char * build_type = ""; |
| 370 | #else |
| 371 | const char * build_type = " (debug)"; |
| 372 | #endif |
| 373 | |
| 374 | LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type); |
| 375 | } |
| 376 | |
| 377 | std::string common_params_get_system_info(const common_params & params) { |
| 378 | std::ostringstream os; |