From e1f3caba498698aca300bca27cf633006f99d5fa Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 2 May 2021 14:49:34 -0700 Subject: [PATCH] Added OPTFLAGS --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d93d36a..466d4e1 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,12 @@ TESTS = $(wildcard sql/*.sql) REGRESS = btree cast copy functions ivfflat_cosine ivfflat_ip ivfflat_l2 ivfflat_unlogged vector +OPTFLAGS = -march=native + # For auto-vectorization: # - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html # - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html -PG_CFLAGS = -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math +PG_CFLAGS = $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math # Debug GCC auto-vectorization # PG_CFLAGS += -fopt-info-vec