Skip to content

Commit

Permalink
Cleanup README and suggest Peano
Browse files Browse the repository at this point in the history
Move Vitis installation to optional
  • Loading branch information
jgmelber authored Feb 24, 2025
1 parent d6c3faa commit f8eb08b
Showing 1 changed file with 47 additions and 51 deletions.
98 changes: 47 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,56 +34,8 @@ Turn off SecureBoot (Allows for unsigned drivers to be installed):

## Prerequisites

### Install AIETools

> You may skip the Vitis™ installation step, and proceed to step: [Install the XDNA™ Driver](#install-the-xdna-driver), if you intend to only target AMD XDNA™/AIE-ML (AIE2) using our open-source single-core compiler [Peano](https://github.com/Xilinx/llvm-aie). AMD XDNA™ 2 (AIE2P) is not currently supported without installing AMD Vitis™ AIE Essentials.
#### Supporting AMD Ryzen™ AI with AMD XDNA™/AIE-ML (AIE2) and AMD XDNA™ 2 (AIE2P): Install AMD Vitis™ AIE Essentials

1. Install Vitis™ AIE Essentials from [Ryzen AI Software 1.3 Early Accesss](https://account.amd.com/en/member/ryzenai-sw-ea.html#tabs-a5e122f973-item-4757898120-tab). We will assume you use the installation directory, `/tools/ryzen_ai-1.3.0/vitis_aie_essentials`.

> This is an early access lounge, you must register and be granted access at this time.
1. Download VAIML Installer for Linux based compilation: `ryzen_ai-1.3.0ea1.tgz`

1. Extract the required tools:

``` bash
tar -xzvf ryzen_ai-1.3.0ea1.tgz
cd ryzen_ai-1.3.0
mkdir vitis_aie_essentials
mv vitis_aie_essentials*.whl vitis_aie_essentials
cd vitis_aie_essentials
unzip vitis_aie_essentials*.whl
```

1. Set up an AI Engine license.

1. Get a local license for AI Engine tools from [https://www.xilinx.com/getlicense](https://www.xilinx.com/getlicense).

1. Copy your license file (Xilinx.lic) to your preferred location, e.g. `/opt/Xilinx.lic`:

1. Setup your environment using the following script for Vitis™ for AIETools:

```bash
#!/bin/bash
#################################################################################
# Setup Vitis AIE Essentials
#################################################################################
export AIETOOLS_ROOT=/tools/ryzen_ai-1.3.0/vitis_aie_essentials
export PATH=$PATH:${AIETOOLS_ROOT}/bin
export LM_LICENSE_FILE=/opt/Xilinx.lic
```

### Install the XDNA™ Driver

1. Install the following prerequisite packages.

```bash
sudo apt install \
libidn11-dev
```

1. Clone the XDNA™ driver repository and its submodules.
```bash
git clone https://github.com/amd/xdna-driver.git
Expand Down Expand Up @@ -163,7 +115,7 @@ Turn off SecureBoot (Allows for unsigned drivers to be installed):

```bash
sudo apt install \
build-essential clang clang-14 lld lld-14 cmake python3-venv python3-pip libxrender1 libxtst6 libxi6 virtualenv
build-essential clang clang-14 lld lld-14 cmake python3-venv python3-pip libxrender1 libxtst6 libxi6
```

1. Install g++13 and opencv needed for some programming examples:
Expand Down Expand Up @@ -192,11 +144,14 @@ Turn off SecureBoot (Allows for unsigned drivers to be installed):

## Build an IRON Design for AIEs in the AMD Ryzen™ AI NPU

> Remember to set up your environment including IRON, and XRT, (and if required Vitis™ AIE Essentials, and your license)
> Remember to set up your environment including IRON, and XRT
> ```
> source /opt/xilinx/xrt/setup.sh
> source ironenv/bin/activate
> source utils/env_setup.sh my_install/mlir_aie
> source utils/env_setup.sh
> ```
> And, if desired, Vitis™ AIE Essentials, and your license.
> ```
> source yourVitisSetupScript.sh
> export LM_LICENSE_FILE=/opt/Xilinx.lic
> ```
Expand Down Expand Up @@ -227,6 +182,47 @@ For your design of interest, for instance from [programming_examples](../program

1. Some MLIR-AIE documentation is available on the [website](https://xilinx.github.io/mlir-aie/)

## Optional: Install AIETools

> You may skip the Vitis™ installation step if you intend to only target AMD XDNA™/AIE-ML (AIE2) and AMD XDNA™ 2 (AIE2P) using our open-source single-core compiler [Peano](https://github.com/Xilinx/llvm-aie). Compiling with `xchesscc` is not supported without installing AMD Vitis™ AIE Essentials.

### Supporting AMD Ryzen™ AI with AMD XDNA™/AIE-ML (AIE2) and AMD XDNA™ 2 (AIE2P): Install AMD Vitis™ AIE Essentials

1. Install Vitis™ AIE Essentials from [Ryzen AI Software 1.3 Early Accesss](https://account.amd.com/en/member/ryzenai-sw-ea.html#tabs-a5e122f973-item-4757898120-tab). We will assume you use the installation directory, `/tools/ryzen_ai-1.3.0/vitis_aie_essentials`.

> This is an early access lounge, you must register and be granted access at this time.

1. Download VAIML Installer for Linux based compilation: `ryzen_ai-1.3.0ea1.tgz`

1. Extract the required tools:

``` bash
tar -xzvf ryzen_ai-1.3.0ea1.tgz
cd ryzen_ai-1.3.0
mkdir vitis_aie_essentials
mv vitis_aie_essentials*.whl vitis_aie_essentials
cd vitis_aie_essentials
unzip vitis_aie_essentials*.whl
```

1. Set up an AI Engine license.

1. Get a local license for AI Engine tools from [https://www.xilinx.com/getlicense](https://www.xilinx.com/getlicense).

1. Copy your license file (Xilinx.lic) to your preferred location, e.g. `/opt/Xilinx.lic`:

1. Setup your environment using the following script for Vitis™ for AIETools:

```bash
#!/bin/bash
#################################################################################
# Setup Vitis AIE Essentials
#################################################################################
export AIETOOLS_ROOT=/tools/ryzen_ai-1.3.0/vitis_aie_essentials
export PATH=$PATH:${AIETOOLS_ROOT}/bin
export LM_LICENSE_FILE=/opt/Xilinx.lic
```

# Detailed Getting Started Guides and Documentation:

[Getting Started on a Versal™ board](docs/Building.md)
Expand Down

0 comments on commit f8eb08b

Please sign in to comment.