Intel Acceleration Stack Quick Start Guide for Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA

ID 683633
Date 12/04/2020
Public
Download
Document Table of Contents

4.3. (Optional) Building and Installing the OPAE Software from Source Code

  1. Complete the following steps to install Intel FPGA Driver:
    1. Remove any previous version:
      RHEL:
      sudo yum remove opae*
      Ubuntu:
      sudo apt-get remove opae*
      sudo apt-get remove python-opae.admin
      sudo apt-get remove python3-opae.pac-sign
    2. Install the Extra Packages for Enterprise Linux (EPEL):
      RHEL:
      sudo yum install https://dl.fedoraproject.org/pub/epel/\
      epel-release-latest-7.noarch.rpm
    3. Change to the OPAE installation software directory:
      cd $OPAE_PLATFORM_ROOT/sw
    4. Install the driver:
      RHEL:
      sudo yum install opae-intel-fpga*.rpm
      Ubuntu:
      sudo dpkg -i opae-intel-fpga-driver_*.deb
  2. Build and install the OPAE SDK from source:
    1. Change to the OPAE software directory and extract the .tar file:
      cd $OPAE_PLATFORM_ROOT/sw
      tar xf opae*.tar.gz
    2. Complete the following steps to build the OPAE software:
      cd opae*
      mkdir build && cd build
      cmake .. -DBUILD_ASE=OFF -DCMAKE_INSTALL_PREFIX=<path to install directory> -DCMAKE_BUILD_TYPE=Release

      For example:

      cmake .. -DBUILD_ASE=ON -DCMAKE_INSTALL_PREFIX=/home/john/\
      opaeinstall -DCMAKE_BUILD_TYPE=Release
      Note: You may get an error because the cmake command cannot find the git repository. You can safely ignore this error message. You do not need the git repository to successfully build the OPAE software.
    3. Run the following command to build the executables and libraries:
      make install
      Note: By default, if you choose the RPM installation flow, the binaries, libraries and include files are under /usr/. If you build and install the OPAE from the source flow, the binaries, libraries, and include files are under <path to install directory>.
    4. Set the appropriate environment variable to ensure tools, libraries, and include files are in your search path. To avoid rerunning this command whenever you restart or open a new terminal, add these directory environment variables to your shell configuration file, /etc/bashrc.
      export PATH=<path to OPAE install directory>/bin:$PATH 
      export C_INCLUDE_PATH=<path to OPAE install directory>/include:\
      $C_INCLUDE_PATH 
      To check for static libraries use the following paths:
      • RHEL:
        export LIBRARY_PATH=<path to OPAE install directory>\
        /lib64:$LIBRARY_PATH
      • Ubuntu:
        export LIBRARY_PATH=<path to OPAE install directory>\
        /lib:$LIBRARY_PATH
      To check for shared libraries use the following paths:
      • RHEL:
        export LD_LIBRARY_PATH=<path to OPAE install directory>/\
        lib64:$LD_LIBRARY_PATH
        
      • Ubuntu:
        export LD_LIBRARY_PATH=<path to OPAE install directory>/\
        lib:$LD_LIBRARY_PATH

Did you find the information on this page useful?

Characters remaining:

Feedback Message