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

Function llama_print_system_info

llama.cpp:10864–10885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10862}
10863
10864const char * llama_print_system_info(void) {
10865 static std::string s;
10866
10867 s = "";
10868 s += "AVX = " + std::to_string(ggml_cpu_has_avx()) + " | ";
10869 s += "AVX2 = " + std::to_string(ggml_cpu_has_avx2()) + " | ";
10870 s += "AVX512 = " + std::to_string(ggml_cpu_has_avx512()) + " | ";
10871 s += "AVX512_VBMI = " + std::to_string(ggml_cpu_has_avx512_vbmi()) + " | ";
10872 s += "AVX512_VNNI = " + std::to_string(ggml_cpu_has_avx512_vnni()) + " | ";
10873 s += "FMA = " + std::to_string(ggml_cpu_has_fma()) + " | ";
10874 s += "NEON = " + std::to_string(ggml_cpu_has_neon()) + " | ";
10875 s += "ARM_FMA = " + std::to_string(ggml_cpu_has_arm_fma()) + " | ";
10876 s += "F16C = " + std::to_string(ggml_cpu_has_f16c()) + " | ";
10877 s += "FP16_VA = " + std::to_string(ggml_cpu_has_fp16_va()) + " | ";
10878 s += "WASM_SIMD = " + std::to_string(ggml_cpu_has_wasm_simd()) + " | ";
10879 s += "BLAS = " + std::to_string(ggml_cpu_has_blas()) + " | ";
10880 s += "SSE3 = " + std::to_string(ggml_cpu_has_sse3()) + " | ";
10881 s += "SSSE3 = " + std::to_string(ggml_cpu_has_ssse3()) + " | ";
10882 s += "VSX = " + std::to_string(ggml_cpu_has_vsx()) + " | ";
10883
10884 return s.c_str();
10885}
10886
10887void llama_dump_timing_info_yaml(FILE * stream, const llama_context * ctx) {
10888 fprintf(stream, "\n");

Callers 2

get_system_infoFunction · 0.50
mainFunction · 0.50

Calls 15

ggml_cpu_has_blasFunction · 0.85
ggml_cpu_has_avxFunction · 0.70
ggml_cpu_has_avx2Function · 0.70
ggml_cpu_has_avx512Function · 0.70
ggml_cpu_has_avx512_vbmiFunction · 0.70
ggml_cpu_has_avx512_vnniFunction · 0.70
ggml_cpu_has_fmaFunction · 0.70
ggml_cpu_has_neonFunction · 0.70
ggml_cpu_has_arm_fmaFunction · 0.70
ggml_cpu_has_f16cFunction · 0.70
ggml_cpu_has_fp16_vaFunction · 0.70
ggml_cpu_has_wasm_simdFunction · 0.70

Tested by

no test coverage detected