Altera RTE for OpenCL User Manual

Page 41

Advertising
background image

CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0
Command queue out of order? = false
Command queue profiling enabled? = true

Kernel initialization is complete.
Launching the kernel...

Thread #2: Hello from Altera's OpenCL Compiler!

Kernel execution is complete.

Getting Started with the Altera RTE for OpenCL for SoC on Linux

To execute an OpenCL kernel onto an SoC, install the Altera Runtime Environment (RTE) for OpenCL,

the SoC Embedded Design Suite (EDS). You must also build your host application using an ARM-specific

Makefile.

1.

Downloading the Altera SDK for OpenCL and the SoC EDS

on page 4-12

To get started with the Altera RTE for OpenCL on the Cyclone V SoC Development Kit, download the

AOCL and the SoC Embedded Design Suite (EDS) for Linux from the Download Center within the

Altera website.

2.

Installing the Altera SDK for OpenCL

on page 4-13

To get started with the Altera RTE for OpenCL on the Cyclone V SoC Development Kit, install the

AOCL for Linux.

3.

Installing the SoC EDS

on page 4-14

Install the Altera SoC Embedded Design Suite (EDS) for Linux to build your host application for

OpenCL kernel deployment on an SoC board.

4.

Licensing the Software

on page 4-14

Obtain the AOCL license from the Altera Self Service Licensing Center.

5.

Recompiling the Linux Kernel Driver

on page 4-15

If you need to rebuild the Linux kernel driver, recompile the

aclsoc

Linux kernel driver to the exact

version of the Linux kernel running on the SoC.

6.

Installing the RTE onto the SoC Board

on page 4-15

The Altera Runtime Environment (RTE) for OpenCL installation package for Altera SoCs with 32-bit

ARM processor is available in tar format.

7.

Installing the Cyclone V SoC Development Kit

on page 4-16

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.

8.

Executing an OpenCL Kernel on an SoC

on page 4-21

Build your host application using the GNU Compiler Collection (GCC) cross-compiler available with

the SoC Embedded Design Suite (EDS).

Downloading the Altera SDK for OpenCL and the SoC EDS

To get started with the Altera RTE for OpenCL on the Cyclone V SoC Development Kit, download the

AOCL and the SoC Embedded Design Suite (EDS) for Linux from the Download Center within the Altera

website.
The following instructions are for downloading the AOCL. If you wish to recompile the Linux kernel

driver and write the SD card image on your own, download the Altera RTE for OpenCL for SoC instead.

4-12

Getting Started with the Altera RTE for OpenCL for SoC on Linux

OCL005-15.0.0

2015.05.04

Altera Corporation

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

Send Feedback

Advertising