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 21:36:41 +03:00
committed by GitHub
parent 175ffa64ee
commit 601c2d2181
4 changed files with 15 additions and 0 deletions
+5
View File
@@ -104,6 +104,11 @@ ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686))
ifneq (,$(findstring sse3,$(SSE3_M)))
CFLAGS += -msse3
endif
SSSE3_M := $(shell $(CPUINFO_CMD) | grep -m 1 "ssse3 ")
ifneq (,$(findstring ssse3,$(SSSE3_M)))
CFLAGS += -mssse3
endif
endif
endif
ifeq ($(UNAME_M),amd64)