Tutorial: Debugging with Intel® Distribution for GDB*

Auto-Attach

The Auto-Attach feature enables listening to debug events from the GPU.

This feature allows the debugger to spawn an instance of gdbserver-gt to listen to debug events from the GPU. This is done to ensure that you can debug the kernel offloaded to GPU.

The auto-attach feature is enabled by default and it does not affect the debugging capability on the CPU device. However, to eliminate the extra output the feature creates, you can turn it off with the INTELGT_AUTO_ATTACH_DISABLE environment variable. To do it, execute the following command on the shell before starting gbd-oneapi:

export INTELGT_AUTO_ATTACH_DISABLE=1

To enable the feature again:

unset INTELGT_AUTO_ATTACH_DISABLE