At: https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#compiler-options , as of version v3.1.1, Fri, 22 May 2026 12:00:00 +0000 , it says:
5.8.6.3. Optimization Options
...
-cl-unsafe-math-optimizations
Allow optimizations for floating-point arithmetic that (a) assume that arguments and results are valid, (b) may violate the IEEE 754 standard, (c) assume relaxed OpenCL numerical compliance requirements as defined in the unsafe math optimization section of the OpenCL C or OpenCL SPIR-V Environment specifications, and (d) may violate edge case behavior in the OpenCL C or OpenCL SPIR-V Environment specifications. This option includes the -cl-no-signed-zeros, -cl-mad-enable, and -cl-denorms-are-zero options.
(emphasis mine.)
It is not clear whether -cl-unsafe-math-optimizations includes:
- only those three option, i.e. it's a shorthand for their combination, or
- any number of potential options, but always also those three.
please amend the wording to clarify.
At: https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#compiler-options , as of version v3.1.1, Fri, 22 May 2026 12:00:00 +0000 , it says:
(emphasis mine.)
It is not clear whether
-cl-unsafe-math-optimizationsincludes:please amend the wording to clarify.