pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feedFrom: Andreas-Krebbel (@Andreas-Krebbel) <noreply+Andreas-Krebbel@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] PR #1008: Add -ffp-contract=fast to PG_CFLAGS to enable multiply and add - fix #1007
Date: Fri, 31 Jul 2026 12:02:15 +0000
Message-ID: <gh-pgvector-pgvector-1008@github.com> (raw)
This implements the proposal from issue #1007
inline patch 1: Makefile (+1/-1 lines) download inline-1.patch
diff --git a/Makefile b/Makefile
index 7e2c8c388..fd5699231 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ endif
# 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 += $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math
+PG_CFLAGS += $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -ffp-contract=fast
# Debug GCC auto-vectorization
# PG_CFLAGS += -fopt-info-vec
view thread (4+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-1008@github.com>
Permalink: ../gh-pgvector-pgvector-1008@github.com/
· ·
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox