Intel® FPGA SDK for OpenCL™ Pro Edition: Best Practices Guide

ID 683521
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.1. Best Practices for Profiling Your Kernel

Intel® recommends that you follow these best practices when profiling your OpenCL kernel.
  • Include the -profile Intel® FPGA SDK for OpenCL™ Offline Compiler command option in your aoc command during development to insert performance counters into your kernel.
  • Run the host application from a local folder to reduce profiler overhead. Avoid running your host from a remote or NAS folder.
  • Ensure that kernel runtime is longer than 20 ms. Otherwise, the overhead of reading Profiler performance data to host takes over.
  • Understand how all the load and store operations and channels are connected in the data flow.