From 2c0abe6cdd94b5cd4e6b689bec38eaa56618692d Mon Sep 17 00:00:00 2001 From: Eddie Richter Date: Wed, 22 May 2024 21:47:07 -0600 Subject: [PATCH 1/2] More clear documentation on resetting up your environment --- docs/Building.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/Building.md b/docs/Building.md index c32ffc09e8..f9fda443d8 100644 --- a/docs/Building.md +++ b/docs/Building.md @@ -118,6 +118,11 @@ and llvm. source utils/env_setup.sh /install /install ``` +Note that when coming back to this install with a fresh environment, it is necessary to rerun the `utils/env_setup.sh` script to setup your environment as well as activate the Python virtual environment using the following command. + ``` + source sandbox/bin/activate + ``` + ## Building on X86 targetting the VCK5000 In order to build and run on PCIe cards, you first have to build and install the aie-rt library. We chose to install the library in /opt/xaiengine but it is not required for the tools to be installed there. Just ensure that when building mlir-aie and mlir-air, that you point to the directory in which the aie-rt library was installed. @@ -147,6 +152,8 @@ Then, set `${ROCM_ROOT}` to the ROCm install from the previous path. Then, run t The PCIe AIR runtime requires the use of the [AIR PCIe kernel driver](https://github.com/Xilinx/ROCm-air-platforms/tree/main/driver). The driver directory in the [ROCm-air-platforms](https://github.com/Xilinx/ROCm-air-platforms) repository contains documentation on how to compile and load the AIR PCIe kernel driver. +After this is complete, refer back to Step 5 of `Building on X86 for mlir-aie development` to setup the rest of your environment. + ### Sysroot Since the AIE tools are cross-compiling, in order to actually compile code, we need a 'sysroot' directory, containing an ARM rootfs. This rootfs must match what will be available in the runtime environment. From c5158079444f30bd465c0ca4ca4af7ebfb637da1 Mon Sep 17 00:00:00 2001 From: eddierichter-amd Date: Wed, 22 May 2024 22:48:55 -0600 Subject: [PATCH 2/2] Update Building.md --- docs/Building.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Building.md b/docs/Building.md index f9fda443d8..07b237eb09 100644 --- a/docs/Building.md +++ b/docs/Building.md @@ -119,9 +119,9 @@ and llvm. ``` Note that when coming back to this install with a fresh environment, it is necessary to rerun the `utils/env_setup.sh` script to setup your environment as well as activate the Python virtual environment using the following command. - ``` - source sandbox/bin/activate - ``` +``` +source sandbox/bin/activate +``` ## Building on X86 targetting the VCK5000