Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add avx512 flags to makevars #29

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
src/*.o
src/*.so
src/*.dll
src/whisper_cpp/*.o
inst/dev
inst/model-repository
6 changes: 6 additions & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686 amd64))
PKG_CFLAGS += -mavx2
PKG_CPPFLAGS += -mavx2
endif

AVX512F_M := $(shell $(CPUINFO_CMD) | grep -iw 'AVX512F')
ifneq (,$(AVX512F_M))
PKG_CFLAGS += -mavx512f
PKG_CPPFLAGS += -mavx512f
endif

FMA_M := $(shell $(CPUINFO_CMD) | grep -iw 'FMA')
ifneq (,$(FMA_M))
Expand Down
Loading