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

Function get_system_info

common/common.cpp:866–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866std::string get_system_info(const gpt_params & params) {
867 std::ostringstream os;
868
869 os << "system_info: n_threads = " << params.n_threads;
870 if (params.n_threads_batch != -1) {
871 os << " (n_threads_batch = " << params.n_threads_batch << ")";
872 }
873 os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info();
874
875 return os.str();
876}
877
878std::string gpt_random_prompt(std::mt19937 & rng) {
879 const int r = rng() % 10;

Callers 4

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

Calls 2

llama_print_system_infoFunction · 0.50
strMethod · 0.45

Tested by

no test coverage detected