forked from extern/whisper.cpp
parent
f24d940ca9
commit
0e858f080d
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ stream
|
|||||||
*.o
|
*.o
|
||||||
.cache
|
.cache
|
||||||
build/
|
build/
|
||||||
|
build-em/
|
||||||
out/
|
out/
|
||||||
.vs/
|
.vs/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
8
Makefile
8
Makefile
@ -22,12 +22,20 @@ ifeq ($(UNAME_S),Darwin)
|
|||||||
CFLAGS += -pthread
|
CFLAGS += -pthread
|
||||||
CXXFLAGS += -pthread
|
CXXFLAGS += -pthread
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(UNAME_S),FreeBSD)
|
||||||
|
CFLAGS += -pthread
|
||||||
|
CXXFLAGS += -pthread
|
||||||
|
endif
|
||||||
|
|
||||||
# Architecture specific
|
# Architecture specific
|
||||||
# TODO: probably these flags need to be tweaked on some architectures
|
# TODO: probably these flags need to be tweaked on some architectures
|
||||||
|
# feel free to update the Makefile for your architecture and send a pull request or issue
|
||||||
ifeq ($(UNAME_M),x86_64)
|
ifeq ($(UNAME_M),x86_64)
|
||||||
CFLAGS += -mavx -mavx2 -mfma -mf16c
|
CFLAGS += -mavx -mavx2 -mfma -mf16c
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(UNAME_M),amd64)
|
||||||
|
CFLAGS += -mavx -mavx2 -mfma -mf16c
|
||||||
|
endif
|
||||||
ifneq ($(filter arm%,$(UNAME_M)),)
|
ifneq ($(filter arm%,$(UNAME_M)),)
|
||||||
# Mac M1
|
# Mac M1
|
||||||
endif
|
endif
|
||||||
|
2
ggml.c
2
ggml.c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#include <malloc.h> // using malloc.h with MSC/MINGW
|
#include <malloc.h> // using malloc.h with MSC/MINGW
|
||||||
#else
|
#elif !defined(__FreeBSD__)
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user