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

ID 683846
Date 12/13/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. Compiling Your OpenCL Kernel

The Intel® FPGA SDK for OpenCL™ offers a list of compiler options that allows you to customize the kernel compilation process. An Intel® FPGA SDK for OpenCL™ Offline Compiler command consists of the aoc command, compiler option(s) and settings, and kernel filenames. You can invoke an aoc command to direct the compiler to target a specific FPGA board, generate reports, or implement optimization techniques.

Before you compile an OpenCL™ kernel, verify that the QUARTUS_ROOTDIR_OVERRIDE environment variable points to the the Intel® Quartus® Prime Pro Edition software.

If these environment variables do not have the correct settings, follow the instructions in the Setting the Intel® FPGA SDK for OpenCL™ Pro Edition User Environment Variables section of the Intel® FPGA SDK for OpenCL™ Pro Edition Getting Started Guide to modify the settings.
Compiling Encrypted Source: When you compile an encrypted .cl file that is provided to you, you can compile only that file with the aoc command. You cannot compile multiple encrypted .cl files at the same time with the aoc command. You cannot compile kernel source files that you have encrypted yourself.