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

ID 683846
Date 12/19/2022
Public
Document Table of Contents

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