Add Imath to system information

pull/368/head
Abitofevrything 3 years ago
parent 7bba2dd63d
commit 67a1aa398a

@ -8442,4 +8442,12 @@ int ggml_cpu_has_sse3(void) {
#endif #endif
} }
int ggml_cpu_has_imath(void) {
#if defined(GGML_USE_IMATH)
return 1;
#else
return 0;
#endif
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

@ -732,6 +732,7 @@ int ggml_cpu_has_fp16_va(void);
int ggml_cpu_has_wasm_simd(void); int ggml_cpu_has_wasm_simd(void);
int ggml_cpu_has_blas(void); int ggml_cpu_has_blas(void);
int ggml_cpu_has_sse3(void); int ggml_cpu_has_sse3(void);
int ggml_cpu_has_imath(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

@ -2578,6 +2578,7 @@ const char * whisper_print_system_info(void) {
s += "WASM_SIMD = " + std::to_string(ggml_cpu_has_wasm_simd()) + " | "; s += "WASM_SIMD = " + std::to_string(ggml_cpu_has_wasm_simd()) + " | ";
s += "BLAS = " + std::to_string(ggml_cpu_has_blas()) + " | "; s += "BLAS = " + std::to_string(ggml_cpu_has_blas()) + " | ";
s += "SSE3 = " + std::to_string(ggml_cpu_has_sse3()) + " | "; s += "SSE3 = " + std::to_string(ggml_cpu_has_sse3()) + " | ";
s += "IMATH = " + std::to_string(ggml_cpu_has_imath()) + " | ";
return s.c_str(); return s.c_str();
} }

Loading…
Cancel
Save