If you review my post on 12-31-2023 10:18 PM I had used that very same compilation flag with the very same syntax as in the online document you posted, I add here below the line I had used on 12-31-2023 10:18 PM (that fails at runtime):
tetto@ubuntuoffice:~/mytrial1$ icpx -fsycl -fintelfpga fpga_add2.cpp -Xshardware -Xstarget=Cyclone10GX -o fpga_compile.>aoc: Compiling for FPGA. This process may take several hours to complete. Prior to performing this compile, be sure to>
tetto@ubuntuoffice:~/mytrial1$ ./fpga_compile.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)
@BoonBengT_Altera wrote:
Hi @StefanoC,
Recall that previously there was a mention the use of -DFPGA_DEVICE for the compilation command.
However that flag might be obsolete and suspect it might cause some problem.
Hence would suggest to use the -Xstarget instead, more details can be found in the link below:
- https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2023-0/fpga-compilation-flags.html
Best Wishes
BB