Debug with Intel® Distribution for GDB* on Linux* OS Host
ID
766459
Date
3/31/2025
Public
A newer version of this document is available. Customers should click here to go to the newest version.
Debug a SYCL* Application on a CPU
Debug a SYCL* Application on a GPU
Debug a SYCL* Program on the FPGA Emulator
Debug Options
Live Attach
Multi-Target
Multi-Device Debugging
Debug a Page Fault on GPU
Debug an OpenCL™ Application
Debug MPI Programs
Using Intel® Distribution for GDB with Docker*
Troubleshoot Debugging in Linux*
Notices and Disclaimers
Debug a SYCL* Program on the FPGA Emulator
The FPGA emulator runs on the CPU and behaves similarly to the CPU device. Make sure you complete the necessary setup steps described in the Get Started Guide and proceed with instructions on Basic Debugging on CPU.
When running the Array Transform sample, set the ONEAPI_DEVICE_SELECTOR environment variable to opencl:fpga, so the program picks the FPGA emulation device:
ONEAPI_DEVICE_SELECTOR=opencl:fpga gdb-oneapi array-transform
or if you have already started the debugging session, set the variable from GDB and (re)start the application:
set env ONEAPI_DEVICE_SELECTOR=opencl:fpga
run