Altera RTE for OpenCL Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Messgeräte Altera RTE for OpenCL herunter. Altera RTE for OpenCL User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Altera RTE for OpenCL

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

Seite 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

Seite 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

Seite 4

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

Seite 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

Seite 6

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

Seite 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

Seite 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.

Seite 9

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

Seite 10 - Send Feedback

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

Seite 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

Seite 12 - 2015.05.04

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

Seite 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

Seite 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

Seite 15

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

Seite 16

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

Seite 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

Seite 18 - Uninstalling the Software

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

Seite 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

Seite 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-

Seite 21

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

Seite 22

CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 128CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2CL_DEVICE_PREFERRED

Seite 23

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

Seite 24

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

Seite 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

Seite 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

Seite 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>/<

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 34

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

Seite 35

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

Seite 36 - Configuring the SW3 Switches

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

Seite 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

Seite 38

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

Seite 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>/

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 45

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

Seite 46

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

Seite 47

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

Seite 48

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

Seite 49

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

Seite 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

Seite 51

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

Seite 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

Seite 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

Kommentare zu diesen Handbüchern

Keine Kommentare