Tutorial: Debugging with Intel® Distribution for GDB*
gdbserver-gt starts automatically on the target system when debugging is enabled. If not, run the server on the target manually.
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:
-s flag in clBuildprogram defines the absolute path of the kernel source file.
The kernel source file is accessible on both host and target systems.
Debugging option is enabled for Intel® Distribution for GDB* with Enhanced GPU Offload. Refer to the setup instruction.