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

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

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