Visible to Intel only — GUID: GUID-27A65865-57DD-4936-B169-3C02CDB720AB
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
Visible to Intel only — GUID: GUID-27A65865-57DD-4936-B169-3C02CDB720AB
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