Tutorial: Debugging with Intel® Distribution for GDB*
If the kernel that is offloaded to a GPU stops responding:
ps -u $USER | grep gdbserver-gt
killall -9 gdbserver-gt
If the breakpoints defined inside the kernel are not hit when running on a GPU, reset the GPU device (requires root access):
modprobe -r igfxdcd
echo -1 | tee /sys/kernel/debug/dri/0/i915_wedged
modprobe igfxdcd