Skip to content
Discussion options

You must be logged in to vote

The precompiled/release koboldcpp binaries are built as "portable" builds, and portable builds are capped at AVX2 by design, they never emit AVX512 code even if your CPU supports it.

Look at the Makefile (concedo branch):

koboldcpp/Makefile

Lines 171 to 192 in 4959b8d

ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686 amd64))
ifdef LLAMA_PORTABLE
SIMPLERCFLAGS += -msse3 -mssse3
ifdef LLAMA_NOAVX1
FULLCFLAGS += -msse3 -mssse3
SIMPLECFLAGS += -msse3 -mssse3
else
ifdef LLAMA_NOAVX2
FULLCFLAGS += -mavx -msse3 -mssse3
SIMPLECFLAGS += -mavx -msse3 -mssse3
else
FULLCFLAGS += -mavx2 -msse3 -mssse3 -mfma -mf16c -mavx
SIMPLECFLAGS …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LostRuins
Comment options

Answer selected by henk717
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants