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

ID 683342
Date 4/22/2019
Public
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 Intel® Quartus® Prime Standard Edition software.

If these environment variables do not have the correct settings, follow the instructions in the Setting the Intel® FPGA SDK for OpenCL™ Standard Edition User Environment Variables section of the Intel® FPGA SDK for OpenCL™ Standard 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.
Attention: If you use the Stratix® V Network Reference Platform, you must acquire and install the PLDA QuickUDP intellectual property (IP) core license. Refer to the PLDA website for more information. If you use a Custom Platform that includes the QuickUDP IP core, refer to your board vendor's documentation for more information on the acquisition and installation of the QuickUDP IP license.
CAUTION:

Improper installation of the QuickUDP IP license causes kernel compilation to fail with the following error message:

Error (292014): Can't find valid feature line for core PLDA QUICKTCP (73E1_AE12) in current license.

Note that the error has no actual dependency on the TCP Hardware Stack QuickTCP IP from PLDA.