Skip to content

Commit b959f55

Browse files
Merge pull request #47 from falseywinchnet/d4ptfr-main/optimize-bfft-performance-in-benchmark
Build release binaries without debug asserts
2 parents dc8eacb + 2bdb8e5 commit b959f55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CXXWARNFLAGS ?= -Wall -Wextra -Wpedantic
1616
COPTFLAGS ?= -O2
1717
CWARNFLAGS ?= -Wall -Wextra -Wpedantic
1818
CPPFLAGS ?=
19-
CXXFLAGS ?= $(CXXOPTFLAGS) -std=$(CXX_STD) -fPIC $(CXXWARNFLAGS)
19+
CXXFLAGS ?= $(CXXOPTFLAGS) -DNDEBUG -std=$(CXX_STD) -fPIC $(CXXWARNFLAGS)
2020
CFLAGS ?= $(COPTFLAGS) -std=c11 $(CWARNFLAGS)
2121
LDFLAGS ?=
2222
LDLIBS ?= -lm

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _optimization_flags(cxx: str) -> list:
5757
BFFT_NO_NATIVE=1 to skip CPU-native codegen and BFFT_NO_FAST_MATH=1 to keep
5858
strict IEEE math.
5959
"""
60-
flags = ["-O3"]
60+
flags = ["-O3", "-DNDEBUG"]
6161

6262
if not _env_off("BFFT_NO_NATIVE"):
6363
# x86 / older clang / gcc use -march=native; Apple-silicon clang wants

0 commit comments

Comments
 (0)