aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-10-22 15:33:06 -0400
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit7cf3a656d0c923dd92025c09747461f2f2d1bed0 (patch)
treeaa5d973900e1a8cab3ec06282ebadc24670d0853
parentd416679e5a8ad01a74345f9efb43472f2898d9b7 (diff)
--fast-math seems saves some time
That i can tell at a glance, the largest relevant change this introduces is flush-to-zero for floats. Some testing is required to ensure that the CNN isn't too sensitive to this. Preferable to that option is to simply train it without relying on subnormal floats in the first place.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a7a1791..0fa5237 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
IDIR=include
DEFINES=-DDETERMINISTIC
-CFLAGS=-O3 -Wall -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE $(DEFINES) -I$(IDIR)
+CFLAGS=-O3 --fast-math -Wall -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE $(DEFINES) -I$(IDIR)
CTAK=include/tak.c
CTAK_OBJS=$(CTAK:.c=.o)