From 6554530a57a6d73ff58cdf7e601ec3cab824a4c1 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Mon, 8 Jun 2026 04:45:49 +0200 Subject: kernels: fix OpenBLAS thread contention and numerical instability --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ddfa2b3..97d138e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ CC = gcc -CFLAGS_BASE = -Wall -Wextra -O3 -march=native -ffast-math +# Keep IEEE math semantics by default. Some GCC/OpenBLAS Linux builds produced +# NaN embeddings with -ffast-math. +CFLAGS_BASE = -Wall -Wextra -O3 -march=native LDFLAGS = -lm -lpthread CJSON_CFLAGS ?= $(shell sh -c 'pkg-config --cflags libcjson 2>/dev/null') CJSON_LDFLAGS ?= $(shell sh -c 'pkg-config --libs libcjson 2>/dev/null') -- cgit v1.3.1