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

ID 683342
Date 4/22/2019
Public
Document Table of Contents

7.6. Resolving Hardware Generation Fitting Errors during Kernel Compilation (-high-effort)

Sometimes, OpenCL™ kernel compilation fails during the hardware generation stage because the design fails to meet fitting constraints. In this case, recompile the kernel using the -high-effort option of the aoc command.

When kernel compilation fails because of a fitting constraint problem, the Intel® FPGA SDK for OpenCL™ Offline Compiler displays the following error message:

Error: Kernel fit error, recommend using -high-effort.
Error: Cannot fit kernel(s) on device
To overcome this problem, recompile your kernel by invoking the following command:
aoc -high-effort <your_kernel_filename>.cl

After you invoke the command, the offline compiler displays the following message:

High-effort hardware generation selected, compile time may increase significantly.

The offline compiler will make three attempts to recompile your kernel and generate hardware. Modify your kernel if compilation still fails after the -high-effort attempt.