ggml : detect SSSE3 (#1211)

* ggml : add ggml_cpu_has_ssse3

* whisper : show SSSE3 in system info

* make : detect SSSE3 via cpuinfo
This commit is contained in:
Przemysław Pawełczyk
2023-08-27 20:36:41 +02:00
committed by GitHub
parent 175ffa64ee
commit 601c2d2181
4 changed files with 15 additions and 0 deletions

8
ggml.c
View File

@ -18721,6 +18721,14 @@ int ggml_cpu_has_sse3(void) {
#endif
}
int ggml_cpu_has_ssse3(void) {
#if defined(__SSSE3__)
return 1;
#else
return 0;
#endif
}
int ggml_cpu_has_vsx(void) {
#if defined(__POWER9_VECTOR__)
return 1;