• 10/30/2018
  • Public Content

Enabling Debugging in OpenCL™ CPU Compiler and Runtime

To enable the debugging mode in the OpenCL™ CPU Compiler and Runtime, specific options should be passed to the build options string parameter in the
  • -g
    flag enables source-level debug information generation.
    Passing a
    flag means that no optimizations (such as inlining, unrolling, vectorization) are performed, the same as if a
    option was passed.
  • -s /full/path/to/OpenCL/source/file.cl
    option specifies the full path to the OpenCL™ source file. If the path includes spaces, the entire path should be enclosed with double or single quotes. This option is required in cases where the source of an OpenCL™ kernel is passed to the
    function as a string. Only one file can be specified with the
    option. If the file contains one or more
    directives, multiple paths for files with the
    option are not needed.

Product and Performance Information


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