• 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


Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.