Programming the Steam Deck's GPU with Mojo and MAX - GPU Programming - Modular
= 40rem)" rel="stylesheet" data-target="desktop" />
= 40rem)" rel="stylesheet" data-target="discourse-ai_desktop" /><br>= 40rem)" rel="stylesheet" data-target="discourse-calendar_desktop" /><br>= 40rem)" rel="stylesheet" data-target="discourse-gamification_desktop" /><br>= 40rem)" rel="stylesheet" data-target="discourse-reactions_desktop" /><br>= 40rem)" rel="stylesheet" data-target="poll_desktop" />
Programming the Steam Deck's GPU with Mojo and MAX
GPU Programming
BradLarson
(Brad Larson)
June 27, 2026, 12:58pm
This morning’s nightly release has a fun addition: the ability to program the Steam Deck’s GPU using Mojo and MAX!
SteamDeckMojo1920×1440 780 KB
SteamOS 3.8 upgraded the version of the AMD HIP driver to one that was new enough to be used with Mojo and MAX (6.4.1), so when I saw that I knew exactly what we had to do. The Steam Deck contains within it an AMD Van Gogh APU with an RDNA2 GPU component. We registered the architecture in Mojo and MAX, and as you can see above that means that you can clone the modular repository and use any of our Mojo GPU programming examples.
If you want to try this at home, you need to make sure you’ve updated your Steam Deck to the latest OS version, then here are the steps to install the right dev tools. First, switch to Desktop Mode on your Steam Deck. Then go to Konsole (the terminal) and set a password for the system user via passwd if you haven’t already. To install packages, you’ll need to enable dev mode on your device:
sudo steamos-devmode enable
Once that’s enabled, install all the necessary AMD developer tools:
sudo pacman -S hip-runtime-amd rocminfo rocm-smi-lib rocm-hip-runtime
and then set the right permissions:
sudo usermod -aG render,video deck
After that, you should be good to use your Steam Deck like any other Linux development machine for Mojo and MAX. You’re not exactly going to be running Minimax M3 on here, but there’s something deeply satisfying about seeing Mojo code running on a handheld Linux system like this. Kudos to Valve for making this possible via SteamOS.
Some caveats right now: it looks like MAX graphs are currently writing out all-zeroes when run on the Steam Deck, so I’m investigating that. Additionally, we’ve been adding support for RDNA3 and newer AMD GPUs in MAX kernels, but haven’t yet put in place paths for RDNA2 GPUs like the Steam Deck, so full models won’t run until those are added. The kernels are all open-source, so if you want to help with compatibility on your hardware, that’d be welcome.
2 Likes
Related topics
Topic
Replies<br>Views<br>Activity
Calling all AMD RDNA users: help us bring full MAX support to your GPUs!
GPU Programming
discussion<br>gpu
15
1339
April 13, 2026
Examples of programming GPU functions using the Mojo MAX Driver API
MAX
discussion<br>gpu<br>25_1
687
April 26, 2025
Initial support for running MAX models on AMD RDNA GPUs
MAX
gpu
122
February 17, 2026
How to get Mojo to detect AMD integrated GPU (APU)?
GPU Programming
gpu
16
293
March 12, 2026
Support for Turing Architecture?
MAX
373
May 4, 2025
Powered by Discourse, best viewed with JavaScript enabled