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

ID 683846
Date 3/28/2022
Public

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

Document Table of Contents

6.6.2.2. 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.