Step 3: Installing the AI Library Package - 3.5 English

Vitis AI Library User Guide (UG1354)

Document ID
Release Date
3.5 English

The Vitis AI runtime packages and the Vitis AI Library samples and models are compiled into the pre-built Vitis AI board images. You do not have to install Vitis AI runtime packages and model packages when the target is using a Vitis AI pre-built image. However, you can still install the Vitis AI runtime on a custom target or on the official image by following these steps:

  1. Download the vitis-ai-runtime-3.5.0.tar.gz from here. Untar it and copy the following files to the target using the scp command.
    $ tar -xzvf vitis-ai-runtime-3.5.0.tar.gz
    $ scp -r vitis-ai-runtime-3.5.0/2023.1/aarch64/centos root@IP_OF_BOARD:~/

    If the target board is connected to the Internet, you can also use the wget command to download the package directly to the board.

    Note: You can take the RPM package as a normal archive, and extract the contents on the host side if you only need some of the libraries. Only the model libraries can be separated into independent libraries. The other libraries are common. The operation command is as follows:
    $ rpm2cpio libvitis_ai_library-3.5.0-r<x>.aarch64.rpm | cpio -idmv
  2. Log in to the board using ssh.

    You can also use the serial port to log in.

  3. For Zynq UltraScale+ MPSoCs, run the script on the board.
    # cd ~/dpu_sw_optimize/zynqmp/
    # ./
  4. Install the Vitis AI Library.
    # cd ~/centos
    # bash

    You can also execute the following command to install the library one by one.

    # cd ~/centos
    # rpm -ivh --force libunilog-3.5.0-r<x>.aarch64.rpm
    # rpm -ivh --force libxir-3.5.0-r<x>.aarch64.rpm
    # rpm -ivh --force libtarget-factory-3.5.0-r<x>.aarch64.rpm
    # rpm -ivh --force libvart-3.5.0-r<x>.aarch64.rpm
    # rpm -ivh --force libvitis_ai_library-3.5.0-r<x>.aarch64.rpm
    Note: To install all of the rpms that are in a single directory, run rpm -ivh --force *.rpm --nodeps.

After the installation is complete, the directories are as follows:

  • The library files are stored in the /usr/lib location.
  • The header files are stored in the /usr/include/vitis/ai location.