Tutorial: Debugging with Intel® Distribution for GDB*
For remote debugging, configure machines and terminals the following way:
Launch the remote machine, where the debuggee program will run.
Set correct values for PATH and LD_LIBRARY_PATH environment variables.
Start gdbserver-gt the following way:
gdbserver-gt --attach :1234 2
where:
On the remote machine, launch another terminal and set the following environment variable to inform the NEO runtime about the session ID:
export IGFXDBG_OVERRIDE_CLIENT_PID=2
Set correct values for PATH and LD_LIBRARY_PATH environment variables.
Run the program you want to debug. It will be stopped by gdbserver-gt and will look as if the program hangs.
./parallel-for-1D
On your local machine, launch a new terminal and set correct values for PATH and LD_LIBRARY_PATH environment variables.
Start gdb-oneapi:
gdb-oneapi -q
Connect to the gdbserver:
target remote <server-ip-number>:1234The output should look as follows:
Remote debugging using :1234 0x00000000ffffd020 in ?? ()
Now you are all set to debug the GPU kernel.