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

1. Create an RTE directory on the board's file system by typing the
mkdir
tion_directory>
command.
2. Move the downloaded installation package
aclrte-arm32.tgz
to the RTE directory by typing the
mv
aclrte-arm32.tgz
command.
3. Type
cd
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
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=
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.
4-16
Installing the Cyclone V SoC Development Kit
OCL005-15.0.0
2015.05.04
Altera Corporation
Getting Started with the Altera RTE for OpenCL for Altera ARMv7-A SoC