Debugging OpenCL™ Kernels on CPU

Intel® SDK for OpenCL™ Applications - Debugger plug-in for Microsoft Visual Studio* IDE enables debugging OpenCL kernels using the Microsoft Visual Studio software debugger GUI. The Debugger enables debugging host code and OpenCL kernels in a single Microsoft Visual Studio debug session.

Debugger supports existing Microsoft Visual Studio debugging windows such as:

  • Breakpoints
  • Memory view
  • Watch variables - including OpenCL types like float4, int4, and so on
  • Call stack
  • Auto and local variables views


Debugging is available only for CPU device. If the code should run on Intel Graphics, debug on CPU device during development phase, then change the target device.

See Also

For debugger limitations and known issues, refer to the Intel® SDK for OpenCL™ Applications - Release Notes for the latest version.

Enabling Debugging in OpenCL™ Runtime

Configuring the Debugger

Troubleshooting the Debugger

For more complete information about compiler optimizations, see our Optimization Notice.