Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions/getting started for RyzenAI / XRT #494

Open
fifield opened this issue Mar 13, 2024 · 6 comments
Open

Build instructions/getting started for RyzenAI / XRT #494

fifield opened this issue Mar 13, 2024 · 6 comments

Comments

@fifield
Copy link
Collaborator

fifield commented Mar 13, 2024

There isn't any documentation for AIE2, XRT, RyzenAI
see https://github.com/Xilinx/mlir-aie/blob/main/docs/buildHostLin.md

@keryell
Copy link
Member

keryell commented Mar 13, 2024

The problem is that we cannot really advertise the use of unreleased kernel.
I have a modernized version with amd/xdna-driver#3 (comment)

@keryell
Copy link
Member

keryell commented Mar 13, 2024

Otherwise, since Ubuntu 24.04 is expected to be available next month, it is probably the target. It would bring most of the modern tools out of the box, with the tools for handling Zen4 CPU speed, etc.

@fifield
Copy link
Collaborator Author

fifield commented Mar 13, 2024

The problem is that we cannot really advertise the use of unreleased kernel. I have a modernized version with amd/xdna-driver#3 (comment)

Yes it is unfortunate that we need to build (unreleased) kernels. Will ubuntu 24.04 eliminate building kernels?

@keryell
Copy link
Member

keryell commented Mar 13, 2024

Yes it is unfortunate that we need to build (unreleased) kernels. Will ubuntu 24.04 eliminate building kernels?

Actually no because there are still a lot of patches for IOMMU SVA that did not get into the 6.8 merge window. :-(
But one can hope that they will get into 6.9 or next which will be into a Hardware Enablement (HWE) kernel.
But at least with 24.04 you do not need to play with pip, you have already a modern Python, CMake, a modern compiler and C++ library support for bf16 and fp16, etc. :-)

@hunhoffe
Copy link
Collaborator

Did PR #588 address (at least some of) this issue?

@keryell
Copy link
Member

keryell commented Jun 26, 2024

I think what changed the game recently is that Linux 6.10 has AMD IOMMU SVA support out of the box.
So by using for example future Ubuntu 24.10 it will work.
Obviously, in the meantime, you still need to install somehow a 6.10 vanilla kernel.
I have been running some release candidates for a few weeks and my laptop is more stable, but this is unrelated to XDNA, just some poser control firmware/BIOS issues..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants