Intel® FPGA RTE for OpenCL™ Standard Edition: Getting Started Guide

ID 683550
Date 9/24/2018
Public
Document Table of Contents

4.1.5. Installing the Intel FPGA RTE for OpenCL Standard Edition onto the SoC FPGA Board

The RTE Standard Edition installation package for Intel® SoC FPGAs with 32-bit ARM® processor is available in tar format. To install the software, you must install it in a directory that you own, and set all the necessary environment variables.
  1. Create an RTE directory on the board's file system by typing the mkdir <rte_destination_directory> command.
  2. Move the downloaded installation package aclrte-arm32.tgz to the RTE directory by typing the mv aclrte-arm32.tgz <rte_destination_directory> command.
  3. Type cd <rte_destination_directory> to navigate to the RTE directory.
  4. To unpack the tarball, type tar -xvfz aclrte-arm32.tgz at the command prompt.
  5. Transfer the aclsoc_drv.ko file you built on your development machine into the <rte_destination_directory>/board/c5soc/driver directory on the SoC FPGA board.
  6. Set the environment variables, as shown below.
    Intel recommends that you consolidate the settings of the environment variables into a file called init_opencl.sh. Then, run the command source ./init_opencl.sh to load all the environment variables and the OpenCL™ Linux kernel driver simultaneously.
    
    export INTELFPGAOCLSDKROOT=<rte_destination_directory>
    export AOCL_BOARD_PACKAGE_ROOT=$INTELFPGAOCLSDKROOT/board/c5soc
    export PATH=$INTELFPGAOCLSDKROOT/bin:$PATH
    export LD_LIBRARY_PATH=$INTELFPGAOCLSDKROOT/host/arm32/lib:$LD_LIBRARY_PATH
    insmod $AOCL_BOARD_PACKAGE_ROOT/driver/aclsoc_drv.ko