AN 780: Compiling and Customizing an Intel® Arria® 10 Custom Platform for OpenCL*

ID 683045
Date 10/30/2018
Public
Document Table of Contents

1.5.2. Specifying the Intel® FPGA SDK for OpenCL™ User Environment Variables on Linux

You have the option to set the Linux user environment variables permanently or transiently.
  • To apply permanent environment variable settings, open a shell and then type:
    export <variable_name>="<variable_setting>":$<variable_name>
    For example, the command export PATH="$INTELFPGAOCLSDKROOT/bin":$PATH adds $INTELFPGAOCLSDKROOT/bin to the list of PATH settings.
    Table 4.   Intel® FPGA SDK for OpenCL™ Linux User Environment Variable Settings
    Environment Variable Path to Include
    PATH $INTELFPGAOCLSDKROOT/bin where INTELFPGAOCLSDKROOT points to the path of the software installation
    LD_LIBRARY_PATH $INTELFPGAOCLSDKROOT/host/linux64/lib

    $AOCL_BOARD_PACKAGE_ROOT/linux64/lib, where AOCL_BOARD_PACKAGE_ROOT points to the path of the Custom or Reference Platform

    AOCL_BOARD_PACKAGE_ROOT Location Custom or Reference Platform
  • To apply transient environment variable settings, open a command-line terminal and type:
    source $INTELFPGAOCLSDKROOT/init_opencl.sh
    Example script output:
    AOCL_BOARD_PACKAGE_ROOT path is not set in environment
    Setting to default s5_ref board.
    If you want to target another board, do 
    set AOCL_BOARD_PACKAGE_ROOT=board_pkg_dir
    Adding $INTELFPGAOCLSDKROOT/bin to PATH
    Adding $INTELFPGAOCLSDKROOT/host/linux64/lib to LD_LIBRARY_PATH
    Adding $AOCL_BOARD_PACKAGE_ROOT/linux64/lib to LD_LIBRARY_PATH