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

ID 683846
Date 12/19/2022
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.

Did you find the information on this page useful?

Characters remaining:

Feedback Message