Altera RTE for OpenCL Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Instruments de mesure Altera RTE for OpenCL. Altera RTE for OpenCL User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Altera RTE for OpenCL

Altera RTE for OpenCLGetting Started GuideSubscribeSend FeedbackOCL005-15.0.02015.05.04101 Innovation DriveSan Jose, CA 95134www.altera.com

Page 2 - Contents

Getting Started with the Altera RTE for OpenCLfor 64-Bit Windows22015.05.04OCL005-15.0.0SubscribeSend Feedback1. Downloading the Altera RTE for OpenCL

Page 3 - Altera Corporation

If you do not have a myAltera account, register for a new account.2. Click DOWNLOADS to enter the Download Center.3. Click Altera SDK for OpenCL to en

Page 4

Attention: If you set the environment variables permanently, you apply the settings once during installa‐tion. If you set the environment variables tr

Page 5

Attention: The ARM processor on the Cyclone V SoC Development Kit does not support the AOCLversion utility.•At a command prompt, invoke the aocl versi

Page 6

Related Information• Altera Licensing page on the Altera website• Altera Software Installation and Licensing• Altera websiteInstalling an FPGA BoardBe

Page 7 - RTE Utility

8.To verify the successful installation of the FPGA board, invoke the command aocl diagnose<device_name> to run any board vendor-recommended dia

Page 8 - Managing Host Application

Programming the Flash Memory of an FPGA on WindowsBy default, you configure an FPGA using the hardware image stored in the flash memory of the device.

Page 9

• OpenCL Design Examples page on the Altera websiteExecuting an OpenCL Kernel on an FPGABuild your OpenCL host application in Microsoft Visual Studio

Page 10 - Send Feedback

Example output:Found 1 OpenCL platforms.Querying platform for info:==========================CL_PLATFORM_NAME = Altera SDK for

Page 11 - Related Information

Uninstalling the FPGA BoardTo uninstall an FPGA board for Windows, invoke the uninstall utility command, uninstall theCustom Platform, and unset the r

Page 12 - 2015.05.04

ContentsAltera RTE for OpenCL Getting Started Guide... 1-1Prerequisites for the Altera RTE for OpenCL...

Page 13 - Licensing the Software

Getting Started with the Altera RTE for OpenCLfor x86_64 Linux and 64-Bit Linux Big-EndianSystem32015.05.04OCL005-15.0.0SubscribeSend Feedback1. Downl

Page 14 - Installing an FPGA Board

If you do not have a myAltera account, register for a new account.2. Click DOWNLOADS to enter the Download Center.3. Click Altera SDK for OpenCL to en

Page 15

Attention: If you set the environment variables permanently, you apply the settings once during installa‐tion. If you set the environment variables tr

Page 16

Setting the Environment Variables on Big-Endian SystemsYou have the option to apply environment variables permanently or transiently. The environmentv

Page 17 - Building the Host Application

Attention: The ARM processor on the Cyclone V SoC Development Kit does not support the AOCLversion utility.•At a command prompt, invoke the aocl versi

Page 18 - Uninstalling the Software

Related Information• Altera Licensing page on the Altera website• Altera Software Installation and Licensing• Altera websiteInstalling an FPGA BoardBe

Page 19 - Uninstalling the FPGA Board

Related Information• Installing the Cyclone V SoC Development Kit on page 4-16• Setting the Environment Variables on Big-Endian Systems on page 3-4• Q

Page 20

you power up the system, it configures the FPGA circuitry based on this hardware image in the flashmemory. Therefore, it is imperative that an OpenCL-

Page 21

Building the Host ApplicationBuild the host executable with the <path_to_exm_opencl_hello_world_x64_linux_<version>>/hello_world/Makefile

Page 22

CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 128CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2CL_DEVICE_PREFERRED

Page 23

Running the Host Application...3-9Output from Succ

Page 24

Getting Started with the Altera RTE for OpenCLfor Altera ARMv7-A SoC42015.05.04OCL005-15.0.0SubscribeSend FeedbackGetting Started with the Altera RTE

Page 25

6. Installing the RTE onto the SoC Board on page 4-4The Altera Runtime Environment (RTE) for OpenCL installation package for Altera SoCs with 32-bitAR

Page 26

To get started with the Altera RTE for OpenCL on the Cyclone V SoC Development Kit, install the AOCLfor Windows.Before you beginYou must have administ

Page 27

You must obtain a separate license for the SoC Embedded Design Suite (EDS).4. If you have a fixed license, append the <path_to_license_file>/<

Page 28

1.Create an RTE directory on the board's file system by typing the mkdir <rte_destina-tion_directory> command.2.Move the downloaded install

Page 29

Figure 4-1: Key Components of the Cyclone V SoC Development Kit1. Writing an SD Card Image onto the Micro SD Flash Card on Windows on page 4-6To write

Page 30

Before you beginThe SD card image linux_sd_card_image.tgz is available in the Cyclone V SoC Development Kit ReferencePlatform. Ensure that the environ

Page 31

Setting Up Terminal Connection in WindowsTo set up the terminal connection for the Cyclone V SoC Development Kit in Windows, specify the USBvirtual CO

Page 32 - Installing the SoC EDS

The init_opencl.sh file is available in the SD card image that you write onto the micro SD flash card. Itcontains the commands shown below:export ALTE

Page 33

To reboot the CPU, press the Warm reset button next to the four hard processor system (HPS) LEDson the board.3. If you are unable to acquire the IP ad

Page 34

Altera RTE for OpenCL Getting Started Guide12015.05.04OCL005-15.0.0SubscribeSend FeedbackThe Altera RTE for OpenCL Getting Started Guide describes the

Page 35

The hello_world executable will be in the <path_to_exm_opencl_hello_world_arm32_linux_<version>>\hello_world\bin directory.Related Informa

Page 36 - Configuring the SW3 Switches

CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0Command queue out of order? = falseCommand queue profiling enabled? = trueKernel initial

Page 37

To download the Altera RTE for OpenCL, click the RTE tab and select Altera Runtime Environment forOpenCL Linux Cyclone V SoC TGZ.1. In the main page o

Page 38

The installation path must not contain any spaces (for example, <home_directory>\altera\<version>\hld).3. Verify that the installer sets t

Page 39

a. Create a backup copy of the provided license file.b. Save the new license file on your local hard drive.c. Append the <path_to_license_file>/

Page 40

1.Create an RTE directory on the board's file system by typing the mkdir <rte_destina-tion_directory> command.2.Move the downloaded install

Page 41

Figure 4-2: Key Components of the Cyclone V SoC Development Kit1. Writing an SD Card Image onto the Micro SD Flash Card on Linux on page 4-17To write

Page 42

Cyclone V SoC Development Kit Reference Platform, and then write the image onto the micro SD flashcard. The SD card image contains everything you need

Page 43

Setting Up Terminal Connection in LinuxTo set up the terminal connection for the Cyclone V SoC Development Kit in Linux, specify the USBvirtual COM po

Page 44

a. Set the PATH, LD_LIBRARY_PATH, and AOCL_BOARD_PACKAGE_ROOT environmentvariables.b. Load the OpenCL Linux kernel driver.The init_opencl.sh file is a

Page 45

Prerequisites for the Altera RTE for OpenCLTo install the RTE and deploy an OpenCL application on an Altera preferred accelerator board, yoursystem mu

Page 46

Sending discover...No lease, failingThe board uses the dynamic host configuration protocol (DHCP) to acquire an IP address. If thesession times out wa

Page 47

Build your host application using the GNU Compiler Collection (GCC) cross-compiler available with theSoC Embedded Design Suite (EDS).Related Informati

Page 48

Querying device for info:========================CL_DEVICE_NAME = c5soc : Cyclone V SoC Development KitCL_DEVICE_VENDOR

Page 49

Document Revision HistoryA2015.05.04OCL005-15.0.0SubscribeSend FeedbackDate Version ChangesMay 2015 15.0.0• Reorganized instructions into the followin

Page 50

Utilities and Host Runtime Libraries• The RTE Utility includes commands you can invoke to perform high-level tasks. The RTE utilities area subset of o

Page 51

WindowsFolderLinuxDirectoryBig-EndianSystemDirectoryARMDirectoryDescriptionhost\windows64\libhost/linux64/libhost/ppc64/libhost/arm32/libOpenCL host r

Page 52

Displaying the Software VersionTo display the version of the Altera RTE for OpenCL , invoke the version utility command.Note: The ARM processor on the

Page 53 - Document Revision History

For information on the following utility command options, refer to the Managing Host Applicationsection of the Altera SDK for OpenCL Programming Guide

Commentaires sur ces manuels

Pas de commentaire