Installation
Installation Requirements
The Vitis™ software platform consists of an integrated design environment (IDE) for interactive project development, and command-line tools for scripted or manual application development. The Vitis software platform also includes the Vivado® Design Suite for implementing the kernel on the target device, and for developing custom hardware platforms.
Some requirements listed here are only required for software acceleration features, but not for embedded software development features. Xilinx recommends installing all the required packages to have the best experience with the Vitis software platform.
To install and run on a computer, your system must meet the following minimum requirements.
- RHEL/CentOS 7.6, 7.7
- Ubuntu 16.04.5 LTS, 16.04.6 LTS
- Ubuntu 18.04.1 LTS, 18.04.2 LTS, 18.04.3 LTS
Component | Requirement | |
---|---|---|
Development (Build Machine OS) |
Deployment (Host OS) Enabled via XRT |
|
Operating System | Linux, 64-bit:
|
For on-premise acceleration (Alveo Data Center accelerator cards):
|
For edge acceleration (embedded platforms):
|
||
System Memory | For Alveo cards: 64 GB (80 GB is
recommended) For embedded: 32 GB |
|
Internet Connection | Required for downloading drivers and utilities. | |
Hard disk space | 100 GB |
Component | Requirement |
---|---|
Operating System | Linux, 64-bit:
|
System Memory | 64 GB (80 GB is recommended) |
Internet Connection | Required for downloading drivers and utilities. |
Hard disk space | 100 GB |
OpenCL Installable Client Driver Loader
The Vitis™
environment supports the OpenCL Installable Client Driver
(ICD) extension (cl_khr_icd
). This extension allows multiple
implementations of OpenCL to co-exist on the same system. The
ICD Loader acts as a supervisor for all installed platforms, and provides a standard handler for
all API calls.
Applications can choose an OpenCL platform from the list of installed platforms. Based on the platform ID specified by the application, the ICD dispatches the OpenCL host calls to the right runtime.
Xilinx does not provide the OpenCL ICD library, so the following should be used to install the library on your system.
Ubuntu
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install opencl-headers
sudo apt-get install ocl-icd-opencl-dev
RHEL/CentOS
sudo yum install ocl-icd
sudo yum install ocl-icd-devel
sudo yum install opencl-headers
Vitis Software Platform Installation
Installing the Vitis Software Platform
- Go to the Xilinx Downloads Website.
- Download the installer for your operating system.
- Run the installer, which opens the Welcome page of the Xilinx Unified 2021.1 Installer.
- Click Next to open the Select Install Type page of the Installer.
- Enter your Xilinx user account credentials, and then select Download and Install Now.
- Click Next to open the Accept License Agreements page of the Installer.
- Accept the terms and conditions by clicking each I Agree check box.
- Click Next to open the Select Product to Install page of the Installer.
- Select Vitis and click Next to open the Vitis Unified Software Platform page of the Installer.
- Customize your installation by selecting design tools and
devices (optional). IMPORTANT: Do not deselect the following option. It is required for installation.Note: Both the Vitis tools and Vivado Design Suite are installed as part of the Vitis Unified Software Platform. You do not need to separately install Vivado tools. You can also install System Generator and Model Composer if needed.
- Click Next to open the Select Destination Directory page of the Installer
- Specify the installation directory, review the location summary, review the disk space required to insure there is enough space, and click Next to open the Installation Summary page of the Installer.
- Click Install to begin the installation of the software.
After a successful installation of the Vitis software, a confirmation message is displayed, with a prompt to run the installLibs.sh script.
- Locate the script at: <install_dir>/Vitis/<release>/scripts/installLibs.sh, where
<install_dir>
is the location of your installation, and<release>
is the installation version.Note: This script is not required on Windows. - Run the script using
sudo
privileges as follows:sudo installLibs.sh
The command installs a number of necessary packages for the Vitis tools based on the OS of your system.
Installing Xilinx Runtime and Platforms
Xilinx Runtime (XRT) is implemented as a combination of user-space and kernel driver components. XRT supports Alveo PCIe-based cards, as well as Versal and Zynq UltraScale+ MPSoC-based embedded system platforms, and provides a software interface to Xilinx programmable logic devices.
xclbinutil
for hardware
generation, and for software compilation, you can use the XRT from the sysroot
. Look for Common
images for Embedded Vitis platforms on the downloads
page.<rpm-dir> or <deb-dir> is the directory where you downloaded the packages to install.
To download and install the XRT package for your operating system, do the following.
- Go to https://www.xilinx.com/xrt.
- From the Getting Started page, you can choose to download the XRT package for a specific Alveo Data Center accelerator card, or for Embedded Platforms. After choosing the platform, you will be redirected to a website with instructions for downloading XRT and the required files for the selected platform.
- Follow the directions to install XRT and your selected platform. TIP: The instructions for installing the Alveo Data Center accelerator cards are provided on the platform download page. Instructions for installing the Embedded Platforms can be found in the following section.
Installing Embedded Platforms
Embedded platforms are available to
download from the Vitis
Embedded Platforms download page for use in the Vitis unified software platform. For the Vitis embedded software development flow, you can
use embedded platforms with Linux, standalone/bare metal, or RTOS domains. To
support the Vitis application acceleration
development flow, embedded platforms must run Linux, with XRT integrated into the
rootfs
. A complete list of the supported
platforms can be found on the downloads page.
To install a platform, download the zip file and extract it
into /opt/xilinx/platforms, or extract it
into a separate location and add that location to the PLATFORM_REPO_PATHS
environment variable.
Embedded platforms require a sysroot
to cross-compile the host application for the Vitis application acceleration flow. Look for
the Common images for Embedded Vitis
platforms block on the downloads page, and download and extract
the common image for your platform architecture.
Running sdk.sh extracts
and installs the sysroot
. The option
-d
gives you the option to choose where to install the
sysroot
. This package also provides a
pre-compiled kernel image and rootfs
.
You can add the sysroot
to a
Makefile for your command line project, or the Vitis IDE will prompt you to add it to your application project.
For example, in your Makefile point <SYSROOT>
to /<install_path>/aarch64-xilinx-linux, which is generated
when running sdk.sh.
Setting Up the Environment to Run the Vitis Software Platform
To configure the environment to run the Vitis software platform, run the following scripts in a command shell to set up the tools to run in that shell:
#set up XILINX_VITIS and XILINX_VIVADO variables
source <Vitis_install_path>/Vitis/2021.1/settings64.sh
#set up XILINX_XRT for data center platforms (not required for embedded platforms)
source /opt/xilinx/xrt/setup.sh
.csh
scripts are also provided.This sets up the tools for the Vitis application acceleration development flow, the Vitis embedded software development flow, and the AI Engine tools for development on Versal AI Engine devices.
export PLATFORM_REPO_PATHS=<path to platforms>
This identifies the location of platform files for the tools, and makes them accessible to your design projects.