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