Development kit for linux -1 – Altera SDK for OpenCL Cyclone V SoC User Manual
Page 24

Setting Up the Altera SDK for OpenCL, SoC EDS,
and the Cyclone V SoC Development Kit for
Linux
3
2015.05.04
OCL006-15.0.0
The Altera SDK for OpenCL (AOCL) setup process includes downloading and installing the software,
installing the Cyclone V SoC Development Kit, and then executing an OpenCL kernel on the SoC.
1.
Upgrading to Current Version of AOCL for Cyclone V SoC
on page 3-2
If you have been using a previous version of the Altera SDK for OpenCL (AOCL) to program your
Cyclone V SoC Development Kit, you must upgrade the software programs and files to the current
version.
2.
Downloading the Altera SDK for OpenCL
Download the AOCL and all related software for Linux from the Download Center on the Altera
website.
3.
on page 3-3
Download the SoC Embedded Design Suite (EDS) for Linux from the Download Center on the Altera
website.
4.
Installing the Altera SDK for OpenCL
on page 3-3
Install the AOCL in a directory that you own.
5.
Setting the Environment Variables for Linux
on page 3-4
Set the PATH and LD_LIBRARY_PATH user environment variables to point to the Altera SDK for
OpenCL (AOCL) and board libraries.
6.
on page 3-5
To use the Altera Software Development Kit (SDK) for OpenCL to create OpenCL kernel programs
that target a Cyclone V SoC, you must install the Altera SoC Embdded Design Suite (EDS) on your
host system to develop the corresponding embedded software.
7.
Obtain the AOCL license from the Altera Self Service Licensing Center.
8.
Installing the Cyclone V SoC Development Kit
on page 3-6
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.
9.
Creating the Hardware Configuration File of an OpenCL Kernel for SoC
To create the
.aocx
file for the hello_world example OpenCL application, you must download the
example design from the OpenCL Design Examples page on the Altera website. Extract the
downloaded source files, and then compile the kernel using the Altera Offline Compiler (AOC).
10.
Executing an OpenCL Kernel on an SoC
Build your host application using the GNU Compiler Collection (GCC) cross-compiler available with
the SoC Embedded Design Suite (EDS).
©
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134