AMD Asks: Do You Need Ryzen AI Support in Linux?

AMD Radeon 780M iGPU
(Image credit: AMD)

Laptops based on AMD's latest Ryzen 7040-series processors come equipped with Ryzen AI engine, an accelerator for machine learning applications. However, this feature is currently exclusive to Windows, leaving Linux users hoping for broader compatibility. Community interest has prompted AMD to reconsider, an reopening a GitHub ticket for feedback and expressing willingness to support the technology if there is adequate demand, reports Phoronix.

AMD has designed the Ryzen XDNA AI engine for less demanding AI inference tasks like audio, photo, and video processing. Its goal is to provide quicker response times compared to online services, and it is also more energy-efficient compared to solutions based on CPUs or GPUs. The engine has the capacity to manage up to four simultaneous AI streams, and it can process INT8 and bfloat16 instructions. 

According to AMD, the performance of this engine surpasses that of the neural engine in Apple's M2 processor. AMD's Xilinx-based AI engine is compatible with popular frameworks such as TensorFlow, PyTorch, and ONNX, but the problem is that the company's Ryzen AI Software Platform version 0.8 only supports Windows. By contrast, Intel has already integrated open-source AI processor support in Linux.

This limitation has sparked a discussion within the tech community, particularly among Linux users who desire the same advanced capabilities on their systems. AMD has been receptive to these discussions, enabling a platform on GitHub for users to express their interest and thoughts on Linux compatibility.

Taking user feedback seriously, AMD has demonstrated flexibility and openness to expanding Ryzen AI’s compatibility based on customer demand to Linux. A GitHub ticket that allows users to voice their need for Linux support has been reopened by an AMD staff member, signifying the company's willingness to listen and potentially act based on the community's needs and interests.

The only question is when will AMD be able to bring proper support for Ryzen AI to Linux. The company yet has to release final version 1.0 of its Ryzen AI Software Platform for Windows, which is dominant in the realm of PCs. As a result, the it's almost certain that the majority of the company's effort will be dedicated to Windows, not Linux, in the coming months.

Anton Shilov
Freelance News Writer

Anton Shilov is a Freelance News Writer at Tom’s Hardware US. Over the past couple of decades, he has covered everything from CPUs and GPUs to supercomputers and from modern process technologies and latest fab tools to high-tech industry trends.

  • bit_user
    Since a lot of AI development happens under Linux (dare I say even the bulk of it?), this would be a good move for developer engagement and mindshare, if nothing else.

    AMD has designed the Ryzen XDNA AI engine for less demanding AI inference tasks like audio, photo, and video processing. Its goal is to provide quicker response times compared to online services, and it is also more energy-efficient compared to solutions based on CPUs or GPUs. The engine has the capacity to manage up to four simultaneous AI streams, and it can process INT8 and bfloat16 instructions.
    Good summary. The key point is that it's not faster than the GPU. AMD actually told us how fast it is:
    Ryzen AI can reportedly do up to 5 TFLOPS (BF16)
    780M iGPU reportedly good for 8.6 TFLOPS (FP16).
    So, this AI accelerator isn't going to be a game changer for generative AI. It's really about extending battery life, when using AI for things like video conferencing or video playback.
    Reply
  • unis_torvalds
    Agreed. Linux support should be a no brainer.
    Reply
  • bit_user
    unis_torvalds said:
    Agreed. Linux support should be a no brainer.
    Feel free to mention that on the github issue (if you haven't already):
    https://github.com/amd/RyzenAI-SW/issues/2#issuecomment-1773335415
    The more votes, the better!
    Reply
  • tracker1
    Linux is definitely necessary. Almost nobody is targeting server loads under windows for this kind of work. It's all Linux there.

    I'd go a half step farther and say that dev ex should have parity with WSL as well as Linux hosts. Since a lot of projects resetting Linux are done in Windows with WSL.
    Reply
  • abufrejoval
    It's very hard to say, when there seem to be no details on
    functional scope: what can that NPU do?
    comparative computing power: how does it compare to say a Hexagon DSP/NPU?
    power/performance/usability: how much power will it require at which type of ML workload, can it be regulated to meet latency expectations?
    integration with the rest of the SoC: how much CPU collaboration/wake-up will be required e.g to do voice recognition and command processsing?So far all I see is something that seems more designed for the Microsoft, Metas and Googles of this world, who need a more energy efficient and intransparent way to snoop on people who just bought an operating system and got an Internet giant back-door instead.

    And I certainly don't want that on any OS: my personal computer is there to serve me, exclusively.

    I can tell AMD what I don't want to go and that is iGPU support for my Cezanne APUs, which are getting awfully close to being jettisoned as near all GCN GPUs loose Linux driver support these days: two years of support is quite ridiculous for an APUs iGPU which you can't swap out!

    And it's not the first time AMD hardware still sold as new went out of driver support...

    If you want success in mobile devices, that's not how to do it!
    Reply
  • bit_user
    abufrejoval said:
    It's very hard to say, when there seem to be no details on
    functional scope: what can that NPU do?
    comparative computing power: how does it compare to say a Hexagon DSP/NPU?
    power/performance/usability: how much power will it require at which type of ML workload, can it be regulated to meet latency expectations?
    integration with the rest of the SoC: how much CPU collaboration/wake-up will be required e.g to do voice recognition and command processsing?
    Well, I don't know how much power it uses, but Chips & Cheese pieced together some details from their Hot Chips presentation + details Xilinx has published about them. Scroll about half way down this page:
    https://chipsandcheese.com/2023/09/16/hot-chips-2023-amds-phoenix-soc/
    abufrejoval said:
    I can tell AMD what I don't want to go and that is iGPU support for my Cezanne APUs, which are getting awfully close to being jettisoned as near all GCN GPUs loose Linux driver support these days: two years of support is quite ridiculous for an APUs iGPU which you can't swap out!
    Support as in what? Their prepackaged drivers? You'll still have the open source driver supporting them. It's not as if ROCm ever supported them, so no loss there.

    I might agree with you, if I better understood what you're talking about.
    Reply
  • abufrejoval
    bit_user said:
    Support as in what? Their prepackaged drivers? You'll still have the open source driver supporting them. It's not as if ROCm ever supported them, so no loss there.

    I might agree with you, if I better understood what you're talking about.
    In response to this post.
    Reply
  • bit_user
    abufrejoval said:
    In response to this post.
    Huh. Why didn't you just link the phoronix post?
    https://www.phoronix.com/news/AMDVLK-2023.Q4.1-ReleasedAs that article says:
    " You can either stick to AMDVLK 2023.Q3 and older or the better option is to simply use the community-maintained Mesa RADV driver."So, I think it's a bit of a non-issue. I don't quite know why AMD even keeps maintaining AMDVLK, but I guess they just like to have something they control, so they can theoretically be sure it provides the best support for new hardware at launch & supports all the latest & greatest features of their hardware, without having to negotiate or compromise anything with the Mesa developers.


    The best thing about your link is this pic, which is just like... weird. As if they gave it to her to pose with, yet she doesn't really know quite what it is.
    Reply
  • abufrejoval
    El Chapuzas is often only a copycat, but he's very early, finds a lot of truffels before they appear elsewhere, so I tend to go there before I go to the more serious sites like Phoronix...

    That picture is showing all signs of having been generated, most likely not by that GPU, though.

    But even if the article is about Linux drivers, it hints at Windows not being far behind. And that is something I've come across before, where AMD has dropped driver support for a generation of GPUs while APUs still selling as new had them inside (e.g. Richmond).

    After all it makes a lot more sense to cut driver support on a hardware generation level than on a fixed time period. And that has Cezanne with lots of active products right inside the trailing edge of GCN.

    Now, I'm not worried that much over lack of support for the latest game titles in iGPUs, but when it comes to security patches, lack of ongoing driver support essentially kills a platform for business use.

    And in the case of Linux GPU drivers, it's mostly the power management features for SoCs that are important to me. And that's one area where open source drivers have suffered from lack of technical vendor support. Again, I'm not trying to game on notebooks, but trying to remain productive during travel or where I can't keep people staring at their mobile from stepping on my power line.
    Reply
  • bit_user
    abufrejoval said:
    And in the case of Linux GPU drivers, it's mostly the power management features for SoCs that are important to me. And that's one area where open source drivers have suffered from lack of technical vendor support. Again, I'm not trying to game on notebooks, but trying to remain productive during travel or where I can't keep people staring at their mobile from stepping on my power line.
    AMDVLK is a userspace component, thus probably not involved in power management. Just use RADV and you'll be fine.
    Reply