Forum Discussion
oneAPI on Cyclone10gx
Hi @StefanoC,
Apologies for the confusion and missing the previous comment on mentioning the param used of -Xstarget.
The previous use of -DFPGA_DEVICE usually are example with the makefile, hence that param are used.
I tried to run the emulation for the code provided and it was completed successfully. (with some modification on line #8)
Followed by full hardware compilation which is also completed successfully.
Perhap you can try to compile with the following command form your end:
- icpx -fsycl -fintelfpga -Xshardware -Xstarget=Cyclone10GX code.cpp -o code.fpga
Also, just to eliminate the possibilities of code issues. Would suggest perhaps to try run the existing example available for oneAPI in the link below:
Hope that clarify.
Best Wishes
BB
- StefanoC2 years ago
Occasional Contributor
@BoonBengT_Altera on my end still same error:
tetto@ubuntuoffice:~/mytrial1$ ./code.fpga terminate called after throwing an instance of 'sycl::_V1::runtime_error' what(): Invalid device program image: size is zero -30 (PI_ERROR_INVALID_VALUE) Aborted (core dumped)what did you modify on line8? can you share your code that you got it to run?