Altera RTE for OpenCL Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Urządzenia pomiarowe Altera RTE for OpenCL. Altera RTE for OpenCL User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj

Podsumowanie treści

Strona 1 - Altera RTE for OpenCL

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

Strona 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

Strona 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

Strona 4

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

Strona 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

Strona 6

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

Strona 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

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

Strona 9

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

Strona 10 - Send Feedback

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

Strona 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

Strona 12 - 2015.05.04

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

Strona 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

Strona 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

Strona 15

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

Strona 16

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

Strona 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

Strona 18 - Uninstalling the Software

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

Strona 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

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

Strona 21

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

Strona 22

CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 128CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2CL_DEVICE_PREFERRED

Strona 23

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

Strona 24

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

Strona 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

Strona 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

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 34

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

Strona 35

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

Strona 36 - Configuring the SW3 Switches

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

Strona 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

Strona 38

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

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 45

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

Strona 46

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

Strona 47

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

Strona 48

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

Strona 49

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

Strona 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

Strona 51

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

Strona 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

Strona 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

Komentarze do niniejszej Instrukcji

Brak uwag