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

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

7.9. Displaying the Estimated Resource Usage Summary On-Screen (-report)

By default, the Intel® FPGA SDK for OpenCL™ Offline Compiler estimates hardware resource usage during compilation . The offline compiler factors in the usage of external interfaces such as PCIe®, memory controller, and DMA engine in its calculations. During kernel compilation, the offline compiler generates an estimated resource usage summary in the <your_kernel_filename>.log file within the <your_kernel_filename> directory. To review the estimated resource usage summary on-screen, include the -report option in the aoc command.

You can review the estimated resource usage summary without performing a full compilation. To review the summary on-screen prior to generating the hardware configuration file, include the -c option in your aoc command.

At a command prompt, invoke the aoc -c <your_kernel_filename>.cl -report command.
The offline compiler generates an output similar to the following example:
+--------------------------------------------------------------------+
; Estimated Resource Usage Summary                                   ;
+----------------------------------------+---------------------------+
; Resource                               + Usage                     ;
+----------------------------------------+---------------------------+
; Logic utilization                      ;   35%                     ;
; ALUTs                                  ;   22%                     ;
; Dedicated logic registers              ;   15%                     ;
; Memory blocks                          ;   29%                     ;
; DSP blocks                             ;    0%                     ;
+----------------------------------------+---------------------------;