time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

commit 841e4eda908d97d4b7b12862c927dd3ecafb17b1
parent 3fb6eb0c0ec63c10018e8e861c5145460c233bf2
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 11 Feb 2024 19:43:48 +0100

add -march=native flag to C

Diffstat:
MC/makefile | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/C/makefile b/C/makefile @@ -25,6 +25,7 @@ DEBUG= #'-g' STANDARD=-std=c99 WARNINGS=-Wall OPTIMIZED=-O3 #-O3 actually gives better performance than -Ofast, at least for this version +LOCAL=-march=native OPENMP=-fopenmp ## Formatter @@ -33,10 +34,10 @@ FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) ## make build build: $(SRC) - $(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT) + $(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(LOCAL) $(OPENMP) $(MATH) -o $(OUTPUT) static: - $(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT) + $(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(LOCAL) $(OPENMP) $(MATH) -o $(OUTPUT) format: $(SRC) $(FORMATTER) $(SRC)