Installing the cyclone v soc development kit, Installing the cyclone v soc development kit -5 – Altera RTE for OpenCL User Manual

Page 34

Advertising
background image

1. Create an RTE directory on the board's file system by typing the

mkdir <rte_destina-

tion_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_destina‐

tion_directory>/board/c5soc/driver

directory on the SoC board.

6. Set the environment variables, as shown below.

Altera 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 ALTERAOCLSDKROOT=<rte_destination_directory>
export AOCL_BOARD_PACKAGE_ROOT=$ALTERAOCLSDKROOT/board/c5soc
export PATH=$ALTERAOCLSDKROOT/bin:$PATH
export LD_LIBRARY_PATH=$ALTERAOCLSDKROOT/host/arm32/lib:$LD_LIBRARY_PATH
insmod $AOCL_BOARD_PACKAGE_ROOT/driver/aclsoc_drv.ko

Installing the Cyclone V SoC Development Kit

To execute an OpenCL kernel on a Cyclone V SoC, first install the Cyclone V SoC Development Kit and

configure it as described in the Altera SDK for OpenCL (AOCL) documentation.

OCL005-15.0.0

2015.05.04

Installing the Cyclone V SoC Development Kit

4-5

Getting Started with the Altera RTE for OpenCL for Altera ARMv7-A SoC

Altera Corporation

Send Feedback

Advertising