Skip to content

Commit 8798901

Browse files
authored
Unsafe math optimizations implies FTZ (#597)
Fixes #579
1 parent c1f45f6 commit 8798901

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

api/footnotes.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ Please refer to the OpenCL glossary for the OpenCL definition of thread-safe. \
148148
This definition may be different from usage of the term in other contexts. \
149149
]
150150

151+
:fn-unsafe-denorms-are-zero: pass:n[ \
152+
As per the definition of `-cl-denorms-are-zero`, the inclusion of this option with `-cl-unsafe-math-optimizations` means that the implementation may flush denormal numbers to zero but is not required to. \
153+
]
154+
151155
:fn-vendor-id: pass:n[ \
152156
OpenCL adopters must report a valid vendor ID for their implementation. \
153157
If there is no valid PCI vendor ID defined for the physical device, implementations must obtain a Khronos vendor ID. \

api/opencl_runtime_layer.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6335,7 +6335,8 @@ rules/specifications for math functions.
63356335
in the unsafe math optimization section of the OpenCL C or OpenCL SPIR-V
63366336
Environment specifications, and (d) may violate edge case behavior in the
63376337
OpenCL C or OpenCL SPIR-V Environment specifications.
6338-
This option includes the `-cl-no-signed-zeros` and `-cl-mad-enable` options.
6338+
This option includes the `-cl-no-signed-zeros`, `-cl-mad-enable`, and
6339+
`-cl-denorms-are-zero` footnote:[{fn-unsafe-denorms-are-zero}] options.
63396340

63406341
`-cl-finite-math-only` ::
63416342
Allow optimizations for floating-point arithmetic that assume that

0 commit comments

Comments
 (0)