This commit is contained in:
Eden 2026-03-23 17:51:05 -05:00 committed by GitHub
commit 7d84dead94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -362,6 +362,10 @@ int main(int argc, char ** argv) {
llama_backend_init();
llama_numa_init(params.numa);
if (!set_process_priority(params.cpuparams.priority)) {
LOG_WRN("%s: failed to set process priority\n", __func__);
}
// TODO: avoid using atexit() here by making `console` a singleton
console::init(params.simple_io, params.use_color);
atexit([]() { console::cleanup(); });

View File

@ -107,6 +107,10 @@ int main(int argc, char ** argv) {
llama_backend_init();
llama_numa_init(params.numa);
if (!set_process_priority(params.cpuparams.priority)) {
LOG_WRN("%s: failed to set process priority\n", __func__);
}
LOG_INF("system info: n_threads = %d, n_threads_batch = %d, total_threads = %d\n", params.cpuparams.n_threads, params.cpuparams_batch.n_threads, std::thread::hardware_concurrency());
LOG_INF("\n");
LOG_INF("%s\n", common_params_get_system_info(params).c_str());