MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / common_init

Function common_init

smallthinker/common/common.cpp:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void common_init() {
351 llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
352 if (LOG_DEFAULT_LLAMA <= common_log_verbosity_thold) {
353 common_log_add(common_log_main(), level, "%s", text);
354 }
355 }, NULL);
356
357#ifdef NDEBUG
358 const char * build_type = "";
359#else
360 const char * build_type = " (debug)";
361#endif
362
363 LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
364}
365
366std::string common_params_get_system_info(const common_params & params) {
367 std::ostringstream os;

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 3

common_log_addFunction · 0.85
common_log_mainFunction · 0.85
llama_log_setFunction · 0.50

Tested by 2

mainFunction · 0.68
mainFunction · 0.68