Python Environment Setup Guide - 2023.1 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.1 English

1. Installing Anaconda3

  1. Download Anaconda3
$ wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
  1. Run the installer (Installer requires bzip, please install it if you don’t have it)
$ bash ./Anaconda3-2019.03-Linux-x86_64.sh

Choose “Yes” for question “Do you wish the installer to initialize Anaconda3 by running conda init?”. More information about Anaconda can be found from Anaconda Documentation.

  1. Add Anaconda3 to PATH, for example:
$ export PATH=/home/<user>/anaconda3/bin:$PATH
$ . /home/<user>/anaconda3/etc/profile.d/conda.sh

2. Setting up xf_hpc environment to include all conda packages used by xf_hpc L1 primitive testing infrastructure.

Please run following command under directory xf_hpc/.

$ conda create -n xf_hpc python=3.7 numpy
$ conda activate xf_hpc

3. Deactivate xf_hpc environment after testing

Note: Please don’t take this step if you intend to run L1 primitives’ testing process. You only take it after you’ve finished all testing.

$ conda deactivate