Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide

ID 683846
Date 10/04/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.1. Compiling Your Kernel to Create Hardware Configuration File

You can compile an OpenCL™ kernel and create the hardware configuration file (that is, the .aocx file) in a single step.

Intel® recommends that you use this one-step compilation strategy under the following circumstances:

  • After you optimize your kernel via the Intel® FPGA SDK for OpenCL™ design flow, and you are now ready to create the .aocx file for deployment onto the FPGA.
  • You have one or more simple kernels that do not require any optimization.

To compile the kernel and generate the .aocx file in one step, invoke the aoc <your_kernel_filename1>.cl [<your_kernel_filename2>.cl ...] command.

Where [ <your_kernel_filename2>.cl ...] are the optional space-delimited file names of kernels that you can compile in addition to <your_kernel_filename1>.cl.

The Intel® FPGA SDK for OpenCL™ Offline Compiler groups the .cl files into a temporary file. It then compiles this file to generate the .aocx file.

Note: If you run the aoc command to compile a .aoco file (that is, aoc <your_kernel_filename>.aoco), the offline compiler generates both a .aocr file and a .aocx file.