• 2019 Update 4
  • 03/20/2019
  • Public Content
Contents

Using Compiler Options for Optimizations

The
-cl-fast-relaxed-math
compiler option is the most general and powerful among other performance related options. Notice that the option affects the compilation of the entire OpenCL program, so it does not permit fine control of the resulting numeric accuracy. You may want to consider experimenting with
native_*
equivalents separately for each specific built-in instead, keeping track of the resulting accuracy. Please find more details on this approach in the “Considering
native_
and
half_
versions of Math Built-Ins” section.
Refer to the
User Manual - OpenCL™ Code Builder
for the list of compiler options for the specific optimizations.
Note
Intel® CPU and Intel® Graphics devices support different sets of options.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804