Xilinx / ROCm-air-platforms

A POC platform and example for an experimental ROCm runtime release for the AMD AI Engine
MIT License
10 stars 1 forks source link

ROCM 5.6 or rocm-5.6.x-air branch? #15

Open thhongee opened 2 months ago

thhongee commented 2 months ago

I’m setting up my environment and trying to get my VCK5000 to work, but I’m encountering quite a few issues. My current question is, according to the website, I should install the global version of ROCm 5.6 (https://github.com/Xilinx/ROCm-air-platforms#getting-started). I have installed that, but the next steps mention that I need to install the rocm-5.6.x-air branch (https://github.com/Xilinx/ROCm-air-platforms/tree/main/platform/vck5000). Is my understanding correct? I’m worried that they might conflict with each other.

Also, the installation guide mentions using Vitis 2023.2 (https://github.com/Xilinx/mlir-aie/blob/main/docs/Building.md), but it says Vitis 2021.1 is needed here. Will there be compatibility issues with this difference in versions?

Thank you.

Stanley

muwyse-amd commented 2 months ago

Hi Stanley,

Your understanding is correct; they will not conflict with each other. The standard ROCm 5.6 is required to provide all the default tools and other libraries. Then, you build and install the modified ROCm Runtime (ROCr) component required to use this specific platform. You should install the custom ROCr to a different location (e.g., /scratch/ or /shared/ or your home directory) than ROCm 5.6 (which is installed in /opt/rocm by default).

The flow has only been tested with Vitis 2021.1, but newer versions may work. You will most likely encounter some IP version or command argument differences that you will need to resolve by making changes to the platform build scripts and Makefiles. If you try this path, please consider submitting a pull request with the necessary changes.