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

ID 683846
Date 6/21/2022
Public

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

Document Table of Contents

7.2. Compiling Your Kernel without Building Hardware (-c)

To direct the Intel® FPGA SDK for OpenCL™ Offline Compiler to compile your OpenCL™ kernel and generate the output of the OpenCL parser without creating a hardware configuration file, include the -c option in your aoc command.
Note: The -c flag is not supported in the incremental compilation flow.
At a command prompt, invoke the aoc -c <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.
When you invoke the aoc command with the -c flag, the offline compiler compiles the kernel(s) and creates the following files and directories:
  • A .aoco file for each .cl kernel source file. The offline compiler creates the .aoco file(s) in a matter of seconds to minutes.