Altera SDK for OpenCL Cyclone V SoC User Manual

Page 35

Advertising
background image

Figure 3-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.

3-12

Creating the Hardware Configuration File of an OpenCL Kernel for SoC

OCL006-15.0.0

2015.05.04

Altera Corporation

Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC Development Kit for Linux

Send Feedback

Advertising