diff --git a/ggml.c b/ggml.c index bb46d66..897d141 100644 --- a/ggml.c +++ b/ggml.c @@ -8427,4 +8427,12 @@ int ggml_cpu_has_blas(void) { #endif } +int ggml_cpu_has_sse3(void) { +#if defined(__SSE3__) + return 1; +#else + return 0; +#endif +} + //////////////////////////////////////////////////////////////////////////////// diff --git a/ggml.h b/ggml.h index a217d2d..3c62d38 100644 --- a/ggml.h +++ b/ggml.h @@ -731,6 +731,7 @@ int ggml_cpu_has_f16c(void); int ggml_cpu_has_fp16_va(void); int ggml_cpu_has_wasm_simd(void); int ggml_cpu_has_blas(void); +int ggml_cpu_has_sse3(void); #ifdef __cplusplus } diff --git a/whisper.cpp b/whisper.cpp index d23e97f..a4b451d 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2577,6 +2577,7 @@ const char * whisper_print_system_info(void) { s += "FP16_VA = " + std::to_string(ggml_cpu_has_fp16_va()) + " | "; s += "WASM_SIMD = " + std::to_string(ggml_cpu_has_wasm_simd()) + " | "; s += "BLAS = " + std::to_string(ggml_cpu_has_blas()) + " | "; + s += "SSE3 = " + std::to_string(ggml_cpu_has_sse3()) + " | "; return s.c_str(); }