1

WSL ROCm

After a few days of troubleshooting trying to get ROCm to work on WSL I noted down these instructions for future me.

Last updated: 2/6/2026

I wanted to run ROCm on WSL so I could run some computer vision model training with Tensorflow which led me down a multi day rabbit hole.

  1. Install WSL (I'm partial to Ubuntu Server)
  2. Add these repos (might need to be changed depending on release)
sudo add-apt-repository -y -s deb http://security.ubuntu.com/ubuntu jammy main universe
  1. Install ROCm drivers for WSL here

  2. Install tensorflow-rocm from here

  3. Either export the following or add them to your .bashrc:

HSA_ENABLE_SDMA = 0;
ROCM_PATH = /opt/cmor;

And it works!! Hopefully....