Verifying the rte installation, Verifying the rte installation -4 – Altera RTE for OpenCL User Manual

Page 23

Advertising
background image

Setting the Environment Variables on Big-Endian Systems

You have the option to apply environment variables permanently or transiently. The environment

variable settings describe the FPGA board and the host runtime to the software.

Before you begin

Attention: If you install the software on a system that does not contain any C Shell Run Commands file

(

.cshrc

) or Bash Run Commands file (

.bashrc

) in your directory, you must set the environment

variables ALTERAOCLSDKROOT and PATH manually. Alternatively, you may create

the

.cshrc

and

.bashrc

files, and then append the environment variables to them. To ensure that

the updates take effect, restart your terminal after you set the environment variables.

Attention: If you set the environment variables permanently, you apply the settings once during installa‐

tion. If you set the environment variables transiently, you must apply the settings during

installation and during every subsequent session you run.

• To apply permanent environment variable settings, manually include the following paths to the

corresponding environment variables:

Environment Variable

Path to Include

PATH

$ALTERAOCLSDKROOT/bin

where ALTERAOCLSDKROOT points to the path of the software installa‐

tion

LD_LIBRARY_PATH

$ALTERAOCLSDKROOT/host/ppc64/lib

$AOCL_BOARD_PACKAGE_ROOT/ppc64/lib

whereAOCL_BOARD_PACKAGE_ROOT points to the path of the Custom

or Reference Platform

• To apply transient environment variable settings, open a command window and run the

source

$ALTERAOCLSDKROOT/init_opencl.sh

command.

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 $ALTERAOCLSDKROOT/bin to PATH
Adding $ALTERAOCLSDKROOT/host/ppc64/lib to LD_LIBRARY_PATH
Adding $AOCL_BOARD_PACKAGE_ROOT/ppc64/lib to LD_LIBRARY_PATH

Verifying the RTE Installation

Invoke the

version

utility command and verify that the correct version of the AOCL is installed.

3-4

Setting the Environment Variables on Big-Endian Systems

OCL005-15.0.0

2015.05.04

Altera Corporation

Getting Started with the Altera RTE for OpenCL for x86_64 Linux and 64-Bit Linux Big-Endian System

Send Feedback

Advertising