From de2e1ca9d3d87e74c0c20c1e4ad3c32b31a5875b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 7 Dec 2022 18:38:22 +0100 Subject: Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable. See the discussion in #918 for the rationale. --- doc/running.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/running.html b/doc/running.html index 9979d223..edc049fb 100644 --- a/doc/running.html +++ b/doc/running.html @@ -220,6 +220,12 @@ mix the three forms, but note that setting an optimization level overrides all earlier flags.

+Note that -Ofma is not enabled by default at any level, +because it affects floating-point result accuracy. Only enable this, +if you fully understand the trade-offs of FMA for performance (higher), +determinism (lower) and numerical accuracy (higher). +

+

Here are the available flags and at what optimization levels they are enabled:

@@ -251,6 +257,8 @@ are enabled: sink  •Allocation/Store Sinking fuse  •Fusion of operands into instructions + +fma    Fused multiply-add

Here are the parameters and their default settings: -- cgit v1.2.3-55-g6feb