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

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

11.1. Configuring the Intel® Code Builder for OpenCL™ Offline Compiler Plug-in for Microsoft Visual Studio

To enable the Intel® Code Builder for OpenCL™ offline compiler plug-in for Microsoft Visual Studio, perform the following steps:

  1. In the Visual Studio software, select Project > Properties.
  2. In the Project > Properties > Code Builder page, change the Device to your desired FPGA device.
  3. In the C/C++ > General property page, under Additional Include Directories, enter the full path to the directory where the OpenCL code header files are located ($(INTELFPGAOCLSDKROOT)\include).
  4. In the Linker > General property page, under Additional Library Directories, enter the full path to the directory where the OpenCL code run-time import library file is located. For example, for 64-bit application, add $(INTELFPGAOCLSDKROOT)\lib\x64:
  5. In the Linker > Input property page, under Additional Dependencies, enter the name of the OpenCL ICD import library file as OpenCL.lib.