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

ID 683846
Date 9/26/2022

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

Document Table of Contents Displaying Flags for Compiling Host Application (compile-config)

To display a list of flags necessary for compiling a host application, invoke the compile-config utility command.
  1. At a command prompt, invoke the aocl compile-config utility command.
    The software displays the path to the folder or directory in which the OpenCL™ API header files reside. For example:
    • For Windows systems, the path is -I%INTELFPGAOCLSDKROOT%/host/include
    • For Linux systems, the path is -I$INTELFPGAOCLSDKROOT/host/include

    where INTELFPGAOCLSDKROOT points to the location of the software installation.

  2. Add this path to your C preprocessor.
Attention: In your host source, include the opencl.h OpenCL header file, located in the INTELFPGAOCLSDKROOT/host/include/CL folder or directory.