Python Environment Setup Guide - 2024.1 English

Vitis Libraries

Release Date
2024-08-06
Version
2024.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 (the installer requires bzip; install it if you do not have it).
$ bash ./Anaconda3-2019.03-Linux-x86_64.sh

Choose “Yes” for the question, “Do you wish the installer to initialize Anaconda3 by running conda init?”. More information about Anaconda can be found in the 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 the xf_blas Environment to Include All Conda Packages Used by the xf_blas L1 Primitive Testing Infrastructure

Run following command under the xf_blas/ directory.

$ conda config --add channels anaconda
$ conda env create -f environment.yml
$ conda activate xf_blas
$ conda install --file requirements.txt

3. Deactivate the xf_blas Environment After Testing

Note

Do not complete this step if you intend to run the L1 primitives’ testing process. You only take it after you have finished all testing.

$ conda deactivate