Use the following steps to set up the host:
- Clone the Vitis AI
repository:
git clone https://github.com/xilinx/vitis-ai
- Install the Docker, and add the user to the docker group. Link the user to docker installation instructions from the following docker's website:
- Any GPU instructions will have to be separated from Vitis AI.
- Set up Vitis AI to target Alveo cards (Only for systems with Alveo cards). To target Alveo cards with Vitis AI for machine learning
workloads, you must install the following software components:
- Xilinx Runtime (XRT)
- Alveo Deployment Shells (DSAs)
- Xilinx Resource Manager (XRM) (xbutler)
- Xilinx Overlaybins (Accelerators to Dynamically Load – binary programming files)
While it is possible to install all of these software components individually, a script has been provided to automatically install them at once. To do so:
- Run the following
commands:
cd Vitis-AI/alveo/packages sudo su ./install.sh
- Power cycle the system.
- Start the Docker Container.
- Change directories to Vitis AI:
cd Vitis-AI/
- Run one of the following command sets.
- For a CPU tools
container:
./docker_run.sh xilinx/vitis-ai:1.0.0-cpu
- For a GPU-enabled tools
container:
cd Vitis-AI/docker ./docker_build.sh cd Vitis-AI ./docker_run.sh xilinx/vitis-ai:runtime-1.0.0-gpu
- For a CPU tools
container:
- Upon starting the container your current working directory will be mounted to: /workspace
- Change directories to Vitis AI: