From ff16bc3dcf15f3e3d68e35ca3ca85c271bd2b005 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 3 Jan 2024 20:20:52 +0100 Subject: [PATCH] Speed: use the right compilation flags to dequantize faster. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a29ffe..fb79066 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,8 @@ all: gguf-tools gguf-tools: gguf-tools.c gguflib.c gguflib.h sds.c sds.h sdsalloc.h fp16.h $(CC) gguf-tools.c gguflib.c sds.c fp16.c \ - -g -ggdb -Wall -W -pedantic -O2 -o gguf-tools + -march=native -flto -ffast-math \ + -g -ggdb -Wall -W -pedantic -O3 -o gguf-tools clean: rm -rf gguf-tools