Visible to Intel only — GUID: GUID-C3B4D882-2BE9-4416-811E-E89181B19EB8
Debug a SYCL* Program on the FPGA Emulator
Tutorial: Debugging with Intel® Distribution for GDB*
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 *:fpga, so the program picks the FPGA emulation device:
ONEAPI_DEVICE_SELECTOR=*: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=*:fpga run