Step 3: Installing AI Library Package - 1.4.1 English

Vitis AI Library User Guide (UG1354)

Document ID
Release Date
1.4.1 English

The Vitis AI Runtime packages and the Vitis AI Library samples and models are built into the board image. You do not have to install Vitis AI Runtime packages and model packages on the board separately. However, you can still install the Vitis AI Runtime on your own image or on the official image by following these steps:

  1. Download the vitis-ai-runtime-1.4.x.tar.gz from here. Untar it and copy the following files to the board using scp.
    tar -xzvf vitis-ai-runtime-1.4.x.tar.gz
    scp -r vitis-ai-runtime-1.4.x/2021.1/aarch64/centos root@IP_OF_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 model libraries can be separated independently, while the others are common libraries. The operation command is as follows:
    rpm2cpio libvitis_ai_library-1.4.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. Run the script.
    cd ~/dpu_sw_optimize/zynqmp/
  4. Install the Vitis AI Library.
    cd ~/centos

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

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

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

  • Library files are stored in /usr/lib.
  • The header files are stored in /usr/include/vitis/ai.