Tutorial

  • 2021.1
  • 12/04/2020
  • Public Content

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

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.