Tutorial: Debugging with Intel® Distribution for GDB*

Sample GPU Debugging Session

DPC++ GPU Debugging

  1. Set a breakpoint inside the kernel to the line marked as breakpoint-here and run the application. Microsoft Visual Studio* starts the instance of Intel® Distribution for GDB* that is responsible for debugging kernels offloaded to GPU. The program stops at the breakpoint.
  2. Now you can investigate local variables, registers, and disassembly by opening the corresponding windows from the Debug tab.

gdbserver-gt starts automatically on the target system when debugging is enabled. If not, run the server on the target manually.

Tip

To see ARF registers in the register window, right-click inside the window and check Other registers option.

OpenCL™ GPU Debugging

Open the kernel file (.CL) in Microsoft Visual Studio and set a breakpoint at the desired line. The breakpoint is hit after running in the remote debug mode.

If the breakpoint is not hit, verify the following: