Skip to content

Instantly share code, notes, and snippets.

@GroDoggo
Created May 30, 2025 15:19
Show Gist options
  • Save GroDoggo/ce8539b13bccc996a1bcea8a230ab0b6 to your computer and use it in GitHub Desktop.
Save GroDoggo/ce8539b13bccc996a1bcea8a230ab0b6 to your computer and use it in GitHub Desktop.
Install ROCM in WSL 2.0 (Ubuntu-22.04) for AMD Radeon RX 7800 XT
# Ubuntu 22.04
# wsl --install Ubuntu-22.04
# rocm 6.3 is not compatible with 7800
# rocm 6.4 appears to be compatible with 7800
# official documentation (https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-radeon.html) use rocm 6.3, this note explains how to perform the same installation but with rocm 6.4 (or any other version) for 7800 compatibility
# basic ubuntu prep
sudo apt update
sudo apt upgrade
sudo apt install build-essential
# Go to official repo => https://repo.radeon.com/amdgpu-install/
# Select rocm version you want (6.4.1 for example)
# Select your OS (ubuntu)
# Select OS version (jammy for ubuntu 22.04 and noble for ubuntu 24.04)
# There sould be a deb file amdgpu-install_<version>.deb, right click and copy link
# Back on WSL paste link
wget <paste-link>
sudo apt install ./amdgpu-install_<version>.deb
# Now you can launch driver installations using amdgpu-install
sudo amdgpu-install --list-usecase
# Official documentation recommand
amdgpu-install -y --usecase=wsl,rocm --no-dkms
# To verify installation
rocminfo
# You should see a list of agents with there properties
# Agent 1 is generally the CPU and Agent 2 the GPU but it can differ with your configuration
# In at least one agent, you should see
# Marketing Name: AMD Radeon RX 7800 XT <OR ANY OF YOU GPU NAME>
# ...
# Device Type: GPU
# If you do not see this, then the installation failed
# You can try with ubuntu 24.04 or another version of rocm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment