Forum Discussion
Running oneAPI C++SYCL_FPGA GettingStarted Example on devcloud
- 2 years ago
Hi JSYOO,
The error "Caught a synchronous SYCL exception: NULL pointer .." is expected as you are targetting a specific device family. This flow (HLS SYCL Flow) produce RTL IP Core and are meant to be integrated into a system using Quartus/PD . *The 2 FPGA Development Flow can be referred here Intel oneAPI FPGA Development Flow.
As for As for "Error: The board package being used only supports report generation/emulation/runtime" it maybe due to the node used on DevCloud is not working properly. Can try other node and check if the same error will occur or not.
Thanks.
Regards,
Aik Eu
Hi Aik,
Thanks for the reply and sorry for the late response
I am still stuck in executing FPGA compiled file.
I've tried
- Getting started vector add example
- Reference design matmul example
Both worked fine for fpga emulation compile and execution.
But both were aborted for fpga execution (compile worked)
first, I compiled using -DFPGA_DEVICE=arria10 option in compile node.
Then, I did
$ aocl diagnose
command on arria10 runtime node and found "/opt/intel/oneapi/intel_a10gx_pac" device and that it did not support usm.
following the board initialization link (https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2023-0/fpga-board-initialization.html) that you showed me, I initialized using
$ aocl initialize acl0 pac_a10
and initialization success message showed up.
But when I try to run the compiled fpga file, it was aborted for both vector add and matmul example.
matmul example showed more precise error messege with:
Caught a synchronous SYCL exception: NULL pointer argument in memory copy operation. -30 (PI_ERROR_INVALID_VALUE)
If you are targeting an FPGA hardware, ensure that your system is plugged to an FPGA board that is set up correctly
I tried another way of compiling using
$ cmake .. -DFPGA_DEVICE=intel_a10gx_pac:pac_a10
to make the -Xstarget option same as the board initialization link (the same linke as above).
But but I wasn't able to compile using
$ make fpga
when using this DFPGA_DEVICE option with
Error: The board package being used only supports report generation/emulation/runtime, please use the board package shipped in the FPGA addon instead.
In conclusion I tried with the initializations, but was not able to compile and execute using fpga
Thanks,
Junsang Yoo