Developer Reference

Migrating OpenCL™ FPGA Designs to SYCL*

ID 767849
Date 5/08/2024
Public

Compiler Flags

The following table lists the compiler flags in OpenCL and their closely related or equivalent flags in SYCL*:

OpenCL SYCL Description
-c -c Compiles your kernel and generates the output of the parser without creating an FPGA programming image file.
-rtl -fsycl-link=early Instructs the compiler to stop after creating the FPGA early image and the associated optimization report.
-I=<directory> -I=<directory>

Adds a directory to the list of directories that the compiler searches for header files during kernel compilation.

-o <file_name> -o <file_name>

In OpenCL, specifies the name of the output .aocr or .aocx file.

In SYCL, specifies the output executable name.

-board=<board_name>-board-package=<board_package_path> -Xstarget=<BSP>:<fpga_board_variant> In SYCL, it specifies the FPGA target and variant. If omitted, the compiler chooses the default FPGA target and variant, which are installation dependent. Refer to the FPGA BSPs and Boards section in the Intel® oneAPI DPC++/C++ Compiler Handbook for Intel FPGAs for additional details.