First, wsl --install Ubuntu-24.04
In Ubuntu 24.04:
Install deps:
sudo apt update
sudo apt install -y ca-certificates wget gpgAdd AMD repo signing key:
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/nullAdd AMD apt sources:
sudo tee /etc/apt/sources.list.d/rocm.list << EOF
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/latest noble main
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/graphics/latest/ubuntu noble main
EOFSet higher priority for AMD repo:
sudo tee /etc/apt/preferences.d/rocm-pin-600 << EOF
Package: *
Pin: release o=repo.radeon.com
Pin-Priority: 600
EOFInstall WSL-specific runtime:
sudo apt install hsa-runtime-rocr4wsl-amdgpuThen get latest deb from https://github.com/ROCm/librocdxg/releases and install it.
Then you can install rocm meta package:
sudo apt install rocmFinally, add these lines to your .bashrc:
export HSA_ENABLE_DXG_DETECTION=1
export PATH=/opt/rocm/bin:$PATHsudo apt install rocminfo
rocminfopip install --index-url https://repo.amd.com/rocm/whl/gfx1151/ -U torch torchvision torchaudio
I think there's a problem with core dump when running comfyui etc. with torch installed in Venv. What did I miss?