Altera SDK for OpenCL Cyclone V SoC Manual de usuario Pagina 20

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 39
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 19
Figure 2-1: Cyclone V SoC Development Kit Programming Overview
Extract hello_world
OpenCL example
Build
host application
Run hello_world
host executable
Check setting of
AOCL_BOARD_PACKAGE_ROOT
Select target FPGA board
(aoc --list-boards)
Compile kernel for target board
(
aoc -v --board c5soc device/hello_world.cl -o bin/hello_world.aocx
)
hello_world.aoco
hello_world.aocx
Build successful?
NO
YES
Legend
Action
Decision
File
Attention: Adding the -c option in your aoc
command (aoc -c -v --board c5soc
device/hello_world.cl
) instructs the
AOC to generate hello_world.aoco only.
-o bin/hello_world.aoco
1. Download the SoC-specific hello_world example OpenCL application from the OpenCL Design
Examples page on the Altera website.
2. Extract the hello_world example (exm_opencl_hello_world_x32_linux_<version>) to a location to which
you have write access.
3. Ensure that you set the environment variable AOCL_BOARD_PACKAGE_ROOT to point to the
Cyclone V SoC Development Kit Reference Platform (that is, ALTERAOCLSDKROOT/board/c5soc).
4. At a command prompt, navigate to the hello_world design.
5. To list the SoC boards available in the Cyclone V SoC Development Kit Reference Platform, invoke the
aoc --list-boards command.
OCL006-15.0.0
2015.05.04
Creating the Hardware Configuration File of an OpenCL Kernel for SoC
2-11
Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC Development Kit for Windows
Altera Corporation
Send Feedback
Vista de pagina 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 38 39

Comentarios a estos manuales

Sin comentarios