On the Minisforum MS-S1 Max with Ryzen AI Max+ 395, install ROCm 7.2.1 on Ubuntu 24.04.4 with AMD’s --no-dkms option to keep Ubuntu’s built-in GPU driver. After rebooting, check for a GPU agent with rocminfo, then use torch.cuda.is_available() to check whether PyTorch can access a GPU. Minisforum listing · AMD compatibility matrix · AMD Ryzen install guide · AMD PyTorch guide
Supported configuration
| Component | What to use |
|---|---|
| Minisforum configuration | MS-S1 Max with Ryzen AI Max+ 395. Minisforum listing |
| Integrated GPU | Radeon 8060S Graphics. AMD hardware configuration |
| Linux and ROCm | Native Ubuntu 24.04.4 with ROCm 7.2.1. AMD compatibility matrix |
| Kernel | OEM kernel 6.14-1018 or newer. AMD Ryzen install guide |
| Python and PyTorch | Python 3.12 with PyTorch 2.9.1, the combination AMD lists with production support for this ROCm release. AMD compatibility matrix |
Prepare Ubuntu and install ROCm
Check the running kernel with uname -r. If you need the required OEM kernel, install the metapackage below. Canonical lists a migration target for this metapackage, so check the running version after reboot. AMD Ryzen install guide · Canonical OEM kernel lifecycle
sudo apt update && sudo apt install linux-oem-24.04c
sudo reboot
After reboot, confirm the kernel and update the system. AMD Ryzen install guide
uname -r
sudo apt upgrade -y
Install the Ubuntu 24.04 installer package for ROCm 7.2.1 and run it with --usecase=rocm. Include --no-dkms because AMD requires the built-in driver for this Ryzen setup. AMD Ryzen install guide
sudo apt update
wget https://repo.radeon.com/amdgpu-install/7.2.1/ubuntu/noble/amdgpu-install_7.2.1.70201-1_all.deb
sudo apt install ./amdgpu-install_7.2.1.70201-1_all.deb
amdgpu-install -y --usecase=rocm --no-dkms
From the account that will run ROCm, add your user to the render and video groups. Reboot for the group change to take effect. AMD Ryzen install guide
sudo usermod -a -G render,video $LOGNAME
sudo reboot
Check GPU detection with rocminfo
After rebooting, run these checks from the same account. AMD Ryzen install guide
groups
rocminfo
Look for both render and video in the first command’s output. In rocminfo, check whether the GPU appears as an agent. AMD’s Ryzen example shows Name set to gfx1151 on Radeon 8050S Graphics. AMD Ryzen install guide
Use apt list --installed to look for installed packages whose names start with rocm and hip. AMD Linux post-install checks
Install the matching PyTorch wheels
Install Ubuntu’s virtual environment support, then create a fresh Python 3.12 environment. Activate it from Bash or Zsh before updating pip and wheel. Canonical Python setup · Python 3.12 virtual environments · AMD PyTorch guide
sudo apt install -y python3-full
python3 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip wheel
With the environment active, download and install AMD’s Ubuntu 24.04 wheels for torch, torchvision, triton and torchaudio. AMD PyTorch guide
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torch-2.9.1%2Brocm7.2.1.lw.gitff65f5bc-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torchvision-0.24.0%2Brocm7.2.1.gitb919bd0c-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/triton-3.5.1%2Brocm7.2.1.gita272dfa8-cp312-cp312-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torchaudio-2.9.0%2Brocm7.2.1.gite3c6ee2b-cp312-cp312-linux_x86_64.whl
pip3 install torch-2.9.1+rocm7.2.1.lw.gitff65f5bc-cp312-cp312-linux_x86_64.whl torchvision-0.24.0+rocm7.2.1.gitb919bd0c-cp312-cp312-linux_x86_64.whl torchaudio-2.9.0+rocm7.2.1.gite3c6ee2b-cp312-cp312-linux_x86_64.whl triton-3.5.1+rocm7.2.1.gita272dfa8-cp312-cp312-linux_x86_64.whl
Verify GPU access in PyTorch
In the same environment, run the availability check. PyTorch uses the torch.cuda interface for HIP on ROCm. AMD PyTorch guide · PyTorch HIP semantics
python3 -c 'import torch; print(torch.cuda.is_available())'
Once the check returns True, print the GPU name and collect the environment details. Look for the GPU model, the ROCm version used to build PyTorch and the HIP runtime version. AMD PyTorch guide
python3 -c "import torch; print(f'device name [0]:', torch.cuda.get_device_name(0))"
python3 -m torch.utils.collect_env
Evidence and limits. The setup follows AMD’s ROCm 7.2.1 Ryzen compatibility, installation and PyTorch documentation, checked on 27 November 2026. The commands were not run on an MS-S1 Max for this guide. AMD compatibility matrix · AMD Ryzen install guide · AMD PyTorch guide