文件名称:
aocl_getting_started.pdf
开发工具:
文件大小: 366kb
下载次数: 0
上传时间: 2019-07-13
详细说明:
面向 OpenCL 的英特尔 FPGA SDK 入门指南,分别介绍了win和linux下的安装和简单应用。Contents
intel
3. 11. Uninstalling an FPga board
39
A. Document Revision History of the Intel FPGA SDK for open CL Pro Edition Getting
Started Guide
41
□ Send Feedback
Intel FPGA SDK for OpenCL Pro Edition Getting started Guid
UG-ocL001|2019.04.01
intel
Send Feedback
1. Intel FPGA SDK for OpenCL Pro Edition Getting
Started Guide
The Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide describes the
procedures to install the Intel FPGA Software Development Kit (SDK) for OpenCL
(1)Pro Edition This document also contains instructions on how to compile an example
OpenCL(2)application with the Intel FPGA SDK for Open CL Pro Edition
OpenCL is a C-based open standard for the parallel programming of heterogeneous
devices. For more information about the openCL specification version 1.0, refer to the
OpenCL 1.0 Reference Pages. For detailed information on the openCL application
programming interface(APi)and programming language refer to the openCL
Specification version 1.0
The intel FPGA SDK for OpenCl Pro edition provides a compiler and tools for you to
build and run Open Cl applications that target intel FPGa products. The Intel FPGA
SDK for OpenCL Pro Edition supports the embedded profile of the openCL
Specification version 1.0
Attention: If you only require the Intel FPGA SDK for OpenCL's kernel deployment
functionality download and install the Intel FPGa Runtime Environment(rte for
OpenCL. Refer to the Inte/ fPGA RTE for OpenCL Pro Edition Getting Started Guide
for more information
Do not install the SDK and the rte on the same host system. The SdK already
contains the rte
If you want to use the Intel FPGA SDK for Open CL Pro Edition with the Intel arria
10 GX FPGA Development Kit refer to the Application Note Configuring the Intel
Arria 10 GX FPGA Development Kit for the Intel FPGA SDK for OpenCL for more
information
Related Information
Open CL Reference pages
Open CL Specification version 1.0
Intel FPGA RTE for Open CL Pro Edition Getting Started Guide
Configuring the Intel Arria 10 GX FPGA Development Kit for the Intel FPGA SDK
for opencL
(1)The Intel FPGA SDK for OpenCL is based on a published khronos Specification, and has passed
the khronos Conformance Testing process. Current conformance status can be found at
www.khronos.org/conformance
(2)OpenCL and the open Cl logo are trademarks of Apple Inc. used by permission of the khronos
group
Intel Corporation. All rights reserved. Intel, the Intel logo, Altera, Arria, Cyclone, Enpirion, MAX, Nios Quartus
countries. Intel warrants performance of its FPGa and semiconductor products to current specifications in Iso
accordance with Intel's standard warranty but reserves the right to make changes to any products and services 9001: 2015
at any time without notice. Intel assumes no responsibility or liability arising out of the application or use of any Registered
information, product, or service described herein except as expressly agreed to in writing by Intel. Intel
customers are advised to obtain the latest version of device specifications before relying on any published
information and before placing orders for products or service
*Other names and brands may be claimed as the property of others
1.Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide
intel
UG-ocL001|2019.04.01
11. Prerequisites for the Intel FPGA SDK for OpenCL Pro Edition
To install the Intel FPGA SDK for OpenCL Pro edition and create an OpenCl application
for an Intel FPGA Preferred Board for OpenCL, your system must meet certain
hardware target platform and software requirements
Hardware Requirements
Accelerator boards requirements
Acquire a reference platform from Intel, or a custom Platform from an intel
preferred board vendor.
For more information refer to the intel FPGA sDK for OpencL FPGA Platforms
page on the intel FPGa website.
Development system requirements:
You must have administrator root or sudo privileges on the development system
to install the necessary packages and drivers
The development system has at least 85 gigabytes(GB)of free disk space for
software installation
The development system has at least 24 GB of RAM
Tip: Refer to board vendor's documentation on the recommended system storage
sIze
For PCI Express*(PCIe*) accelerator boards, the host machine motherboard must
have an available pcle port slot that is at least the same width (that is, the same
number of PCie lanes)as the board
The host system must be running one of the following supported operating systems
For a list of supported Windows and Linux operating systems refer to the
Operating System Support page on the Intel FPGA website
Software Prerequisites
Develop your host application using one of the following Intel FPGA SDK for OpenCL
and Intel Quartus Prime software-compatible C compiler or software development
environment
For Windows systems, use microsoft Visual studio professional and microsoft
Visual c++ versions 2015 or later
For Linux systems, use the C compiler included with the gCC.
Linux systems require the perl command version 5 or later. Include the path to the
Per command in your pAth system environment variable setting
For Intel FPGa SDK for Open Cl packages that include Intel Code builder, intel code
Builder requires java se version 1.8. 71 or later to run
Related Information
Intel FPGA SDK for Open CL FPGA Platforms
□ Send Feedback
Intel FPGA SDK for OpenCL Pro Edition Getting started Guid
intel
1.Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide
UG-ocL001|2019.04.01
1.1.1. Intel FPGA SDK for OpenCL Pro Edition and BSP Backwards
Compatibility
The Intel FPGA SDK for OpenCL Pro edition Version 19. 1 compiler is compatible with
board support packages(BSPs) from Version 19.1, Version 18.1, Version 18.0 and
Intel Acceleration Stack Version 1.2. This backwards compatibility allows you to use
older bsPs with newer compilers. However, some newer open cL compiler features
might not be available to use with older BsPs
To use an older Bsp with the Intel FPGA SDK for OpenCL, you must have a version of
Intel Quartus Prime Pro Edition with the same version number as your BSP. For
example, to use a Version 18.1 BSP with Intel FPGA SDK for OpenCL Pro Edition
Version 19.1, you need Intel Quartus Prime Pro Edition Version 18.1
Related Information
Enabling Backwards Compatibility for an FPGA Board on Windows on page 15
Enabling Backwards Compatibility for an FPGA Board on Linux on page 31
1.2. Contents of the Intel FPGA SDK for OpenCL Pro Edition
The Intel FPGA SDK for openCl Pro edition provides programs, drivers, and SDK-
specific libraries and files
Logic Components
The Intel FPGA SDk for OpenCL Offline Compiler translates your OpenCL device
code into a hardware configuration file that the system loads onto an Intel FPGA
product
The Intel FPGA SDk for OpenCL Pro edition utility includes a set of commands you
can invoke to perform high-level tasks such as running diagnostic tests
The host runtime provides the OpenCL host and runtime aPi for your Opencl host
applicatior
The host runtime consists of libraries that provide openCL APIs, hardware
abstractions, and helper libraries.
Drivers, Libraries and Files
The software installation process installs the Intel FPGA SDK for OpenCL Pro Edition
nto a directory that you own The INTELFPGAOCLSDKROOT environment variable
references the path to the sdK's installation directory.
Table 1. Select Contents of the Intel FPGA SDK for OpenCL Pro Edition Installation
Directory
Windows Folder Linux Directory
Description
bin
bin
User commands in the SDK. include this directory in your path environment
variable setting.
board
board
Reference Platforms available with the software om platform Toolkit and
The Intel FPGA SDK for OpenCL Pro Edition Custo
continued.」
Intel FPGA SDK for OpenCL Pro Edition: Getting Started Guide
Send Feedback
1.Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide
intel
UG-ocL001|2019.04.01
Windows Folder Linux Directory
Description
The path to the Custom Platform Toolkit is
INTELFPGACCLSDKROOT /board/ custom platform toolkit
The path to the a10__ref Reference platform is
TNT ,FPGACCISDKROOT/bard/a10 ref
Intellectual property(Ip) cores used to compile device kernels
host
host
Files necessary for compiling and running your host application
host\include host/include OpenCL Specification version 1.0 header files and software interface files
necessary for compiling and linking your host application
The host/include/CI subdirectory also includes the C++ header file cl hpp.
The file contains an openCL version 1.1 C++ wrapper API. These C++ bindings
enable a C++ host program to access the OpenCL runtime APIs using native C+
+ classes and methods
Important: The OpenCL version 1.1 C++ bindings are compatible with Open CL
Specification versions 1.0 and 1.1
Add this path to the include file search path in your development environment.
host
host/
OpenCL host runtime libraries that provide the Opencl platform and runtime
windows64\lib linux 64/lib
APIs. These libraries are necessary for linking your host application
To run an Opencl application on Linux, include this directory in the
LD_LIBRARY PATH environment variable setting
host
host/
Runtime commands and libraries necessary for running your host application
\windows64\bin linux64/bi
wherever applicable. For 64-bit Windows system, include this directory in your
PATH environment variable setting
For windows system this folder contains runtime libraries
For Linux system, this directory contains platform-specific binary for the aocl
utility command
share
share
Architecture-independent support files
Example OpenCL Applications
You can download example OpenCL applications from the OpenCL Design Examples
page
Related Information
Open CL Design Examples
1. 3. Overview of the Intel FPGA SDK for Open CL Pro Edition Setup
Process
The Inte/ FPGA SDK for Open CL Pro Edition Getting Started Guide outlines the
procedures for installing the Intel FPGa sDK for OpenCL Pro Edition and programming
your FPGA
The following figure summarizes the steps for setting up the necessary software and
installing the fpga board
□ Send Feedback
Intel FPGA SDK for OpenCL Pro Edition Getting started Guid
intel
1.Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide
UG-ocL001|2019.04.01
Figure 1. Intel FPGA SDK for Open CL Pro Edition Installation Process Overview
Review prerequisites k
/ HW. SW
OS prereq
No Acquire prerequisite
satisfied?
HW. SW, OS
YES
Download the tar file from intel. com
(Tar file includes SDK, Intel Quartus Prime
software, and device support
1. Unpack tar file
2. Run setup_pro. batlsh files
Note: Resolve errors, if any observed
aocl version
YES. Download and install
runs
Custom platform
Install fpga board
aoc install
lignose
egend
Action
PASSEDA
Download hello world
Decision
from intelcom
Attention: For possible errors after implementing aocl diagnose utility refer to Possible Errors
After Running the diagnose utility section
After you complete the initial software and hardware setup successfully, you can
create a hardware image from the hello world OpenCL design example
Attention: Before you program your fPGa with the hardware image ensure that your FPga
contains an image created using a current version of the Intel FPGA SDK for Open CL.
Refer to Updating the hardware Image on the fPga for more information
Intel FPGA SDK for OpenCL Pro Edition: Getting Started Guide
Send Feedback
8
1.Inte/ FPGA SDK for OpenCL Pro Edition Getting Started Guide
intel
UG-ocL001|2019.04.01
The following figure summarizes the steps you perform to program your FPGA.
Figure 2. FPGA Programming Overview
Legend
Extract hello_ world Open CL example
Action
cision
Check settings of QUARTUS_ ROOTDIR_OVERRIDE
Select target fpga board aoc-list-boards
Compile kernel for emulation
aoc-march=emulator-y-board=
device hello world. dI-o bin/hello world. aocx
hello world. aox
Build host application
Verify the following
1. Host application is built correctly
2. Check the link paths to libraries
Compile kernel for target board
acc-V-board= device/hello world. cI-o bin/hello world. ocx
Attention: Adding the -rtl option
in your aoc command (aoc-rtl
-V-board=
device/hello world. d
Run hello world host
-o bin hello world. aocr)
instructs the offline compiler to
hello world. aoco hello world. aocr hello_world. docx
executable to execute
generate only hello world.aocr.
hello world. aacx on board
Related Information
Updating the hardware Image on the fPGa on page 21
□ Send Feedback
Intel FPGA SDK for OpenCL Pro Edition Getting started Guid
9
UG-ocL001|2019.04.01
intel
Send Feedback
2. Getting Started with the Intel FPGA SDK for OpenCL
Pro Edition for windows
The Intel FPGa SDK for OpenCL Pro Edition setup process includes downloading and
installing the software installing the FPGa board, and then executing an OpenCL
kernel on the fpga
1. Downloading the Intel FPGA SDK for Open CL Pro Edition on page 10
2. Installing the Intel FPGA SDK for OpenCL Pro Edition on page 11
3. Setting the Intel FPGA SDK for OpenCL Pro Edition User Environment Variables on
page 11
4. Verifying Software Installation on page 13
5. Installing an FPGA Board on page 13
6. Verifying Host Runtime Functionality via Emulation on page 15
7. Creating the FPGA Hardware Configuration File of an OpenCL Kernel on page 19
8. Updating the Hardware Image on the FPGa on page 21
9. Executing an OpenCL Kernel on an FPGA on page 24
10. Uninstalling the Software on page 25
11. Uninstalling an FPGa board on page 25
2.1. Downloading the Intel FPGA SDK for OpenCL Pro Edition
Download the installation package that contains the Intel FPGa SDK for OpenCL Pro
Edition and all related software for windows from the intel fPga SdK for Open CL
Download center
The Intel FPGA SDK for OpenCL Download Center provides a tar file that includes all of
the following software and files
Intel FPGA SDK for Open CL Pro Edition
Intel Quartus Prime Pro edition software
Device support
1. Go to the Intel FPGA SDK for Open CL Download center at the following URL:
https://fpgasoftware.intelcom/opencl/
2. Select the pro edition
3. Select the software version the default selection is the current version
4. Select one of the following download methods
Akamai DLM3 Download manager
Intel Corporation. All rights reserved. Intel, the Intel logo, Altera, Arria, Cyclone, Enpirion, MAX, Nios Quartus
countries. Intel warrants performance of its FPGa and semiconductor products to current specifications in Iso
accordance with Intel's standard warranty but reserves the right to make changes to any products and services 9001: 2015
at any time without notice. Intel assumes no responsibility or liability arising out of the application or use of any Registered
information, product, or service described herein except as expressly agreed to in writing by Intel. Intel
customers are advised to obtain the latest version of device specifications before relying on any published
information and before placing orders for products or service
*Other names and brands may be claimed as the property of others
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.