Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 2.56 KB

File metadata and controls

34 lines (21 loc) · 2.56 KB

Vitis™ Hardware Acceleration Tutorials

See Vitis™ Development Environment on xilinx.com

Section 1 - Workflows

In this section: Quick overview of the Vitis flow and description of the host/kernel paradigm.

The Vitis Flow

To enable hardware acceleration, the code is split between an host and one or several kernels. The host program, written in C/C++ uses API abstractions like OpenCL™, runs on a host processor (a x86 server or an Arm® processor in the case of embedded platforms). The hardware accelerated kernels run onto the programmable logic (PL) of an AMD device.

The API calls, processed by Xilinx Runtime (XRT), manage process transactions between the host program and the hardware accelerators (kernels). Communication between the host and the kernel(s), including control and data transfers, occurs across the PCIe® bus or an AXI bus for embedded platforms.

In a typical application, the host first transfers data to be operated on by the kernel from host memory into global memory. The kernel subsequently operates on the data, storing results back to the global memory. Upon kernel completion, the host transfers the results back into the host memory. Data transfers between the host and global memory introduce latency, which can be costly to the overall application. To achieve acceleration in a real system, the benefits achieved by the hardware acceleration kernels must outweigh the added latency of these data transfers.

The Vitis core development flow helps manage, configure, build, and run a host application and hardware accelerated kernels.

  • The host application is developed in C/C++ with native XRT API or OpenCL API calls
  • The hardware kernels can be developed in C/C++, OpenCL C, or RTL.

Here is a diagram of the functional blocks involved for a x86 server connected to an AMD Alveo™ acceleration card:

flow

In the next section, you will learn how to prepare your environment to run the tutorial.

Copyright © 2020–2023 Advanced Micro Devices, Inc

Terms and Conditions