Altera RTE for OpenCL Manual de usuario Pagina 45

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 53
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 44
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.
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
Send Feedback
Vista de pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 51 52 53

Comentarios a estos manuales

Sin comentarios