Forum Discussion
oneAPI on Cyclone10gx
Hi @StefanoC,
For the emulation to be successful you can change the link #8 as below:
(from) auto selector = sycl::ext::intel::fpga_selector_v;
(to) auto selector = sycl::ext::intel::fpga_emulator_selector_v;
And compile with the emulation command: icpx -fsycl -fintelfpga code.cpp -o code-compile.fpga_emu
Perhaps would suggest to run a simple vector example instead to narrow down if it is hardware connectino issues.
Hope that carify
Regards
BB
- StefanoC2 years ago
Occasional Contributor
changing that line8 into emulation results in this runtime error:
tetto@ubuntuoffice:~/mytrial1$ ./code-compile.fpga_emu terminate called after throwing an instance of 'sycl::_V1::runtime_error' what(): Native API failed. Native API returns: -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) -2 (PI_ERROR_DEVICE_NOT_AVAILABLE) Aborted (core dumped) tetto@ubuntuoffice:~/mytrial1$however, on your end why did you switch to emulation? Does it work on the real fpga hardware without emulation?
the github repository you pointed is full of codes, but in all the README files I can read I never see Cyclone 10GX as supported, so now I am puzzled. Can you point a simple example that is tested on the Cyclone10 GX (hardware compilation)?
Since you can run (at least the emulation) my sample code while I get an error even with simulation I would think my setup has an issue, is there any library/settings to be checked? Ultimately, on your end, if you turn line8 the way it was, does it work at runtime?