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

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

4.1. Installing an FPGA Board (install)

Before creating an OpenCL™ application for an FPGA board, you must first download and install the Custom Platform from your board vendor. Most Custom Platform installers require administrator privileges. To install your board into the host system, invoke the install <path_to_customplatform> utility command.
The steps below outline the board installation procedure. Some Custom Platforms require additional installation tasks. Consult your board vendor's documentation for further information on board installation.
Attention: If you are installing the Cyclone® V SoC Development Kit for use with the Cyclone® V SoC Development Kit Reference Platform (c5soc), refer to Installing the Cyclone V SoC Development Kit in the Intel® FPGA SDK for OpenCL™ Standard Edition Cyclone V SoC Getting Started Guide for more information.
  1. Follow your board vendor's instructions to connect the FPGA board to your system.
  2. Download the Custom Platform for your FPGA board from your board vendor's website. To download an Intel® FPGA SDK for OpenCL Reference Platform, refer to the Intel® FPGA SDK for OpenCL FPGA Platforms page.
  3. Install the Custom Platform in a folder that you own (that is, not a system folder).

    You can install multiple Custom Platforms simultaneously on the same system using the SDK utilities, such as aocl diagnose with multiple Custom Platforms. The Custom Platform subdirectory contains the board_env.xml file.

    In a system with multiple Custom Platforms, ensure that the host program uses the FPGA Client Driver (FCD) to discover the boards rather than linking to the Custom Platforms' memory-mapped device (MMD) libraries directly. As long as FCD is correctly set up for Custom Platform, FCD finds all the installed boards at runtime.

  4. Install the Custom Platform in a directory that you own (that is, not a system directory).
  5. Set the QUARTUS_ROOTDIR_OVERRIDE user environment variable to point to e installation directory.
  6. Add the paths to the Custom Platform libraries (for example, the memory-mapped (MMD) library) to the PATH (Windows) or LD_LIBRARY_PATH (Linux) environment variable setting.
    The Intel® FPGA SDK for OpenCL™ Standard Edition Getting Started Guide contains more information on the init_opencl script. For information on setting user environment variables and running the init_opencl script, refer to the Setting the Intel® FPGA SDK for OpenCL™ Standard Edition User Environment Variables section.
  7. Invoke the command aocl install <path_to_customplatform> at a command prompt.
    Invoking aocl install <path_to_customplatform> also installs a board driver that allows communication between host applications and hardware kernel programs.
    Remember: You need administrative rights to install a board. To run a Windows command prompt as an administrator, click Start > All Programs > Accessories. Under Accessories, right click Command Prompt, In the right-click menu, click Run as Administrator.
  8. To query a list of FPGA devices installed in your machine, invoke the aocl diagnose command.
    The software generates an output that includes the <device_name>, which is an acl number that ranges from acl0 to acl31.
    Attention: For more information on querying the <device_name> of your accelerator board, refer to the Querying the Device Name of Your FPGA Board section.

  9. To verify the successful installation of the FPGA board, invoke the command aocl diagnose <device_name> to run any board vendor-recommended diagnostic test.