-
-
Save tonykero/8ceb62868378ee11e36b07f975731d26 to your computer and use it in GitHub Desktop.
| ## Will successfully install amdgpu drivers and rocm, | |
| ## but pointless as there is no gpu device attached to WSL2 (only CUDA and DirectML is supported, not /dev/kfd or amd gpus) | |
| ## ROCM/HIP | |
| sudo apt update | |
| sudo apt dist-upgrade | |
| sudo apt install libnuma-dev | |
| wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add - | |
| echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list | |
| sudo apt update | |
| sudo apt install rocm-dkms | |
| sudo usermod -a -G video $LOGNAME | |
| sudo usermod -a -G render $LOGNAME | |
| ## TEST | |
| /opt/rocm/bin/rocminfo | |
| /opt/rocm/opencl/bin/clinfo | |
| ## AMDGPU DRIVER | |
| #http://cofal.work/2019/09/27/Ubuntu%E4%B8%8B%E5%AE%89%E8%A3%85ROCm%E8%BF%87%E7%A8%8B/ | |
| #https://askubuntu.com/questions/1097030/cant-install-amdgpu-pro-18-40-on-ubuntu-server-18-04-01 | |
| sudo apt update && sudo apt install -y build-essential clang clang-format clang-tidy cmake cmake-qt-gui ssh curl apt-utils pkg-config g++-multilib git libunwind-dev libfftw3-dev libelf-dev libncurses5-dev libpthread-stubs0-dev vim gfortran libboost-program-options-dev libssl-dev libboost-dev libboost-system-dev libboost-filesystem-dev rpm build-essential cdbs dh-make dkms execstack dh-modaliases | |
| sudo apt-get install linux-headers-4.15.0-20-generic | |
| sudo apt-add-repository universe | |
| sudo dpkg --add-architecture i386 | |
| sudo ./amdgpu-install --opencl=legacy --no-dkms | |
| sudo apt-get -o Dpkg::Options::="--force-overwrite" install amdgpu-dkms | |
| # for amdgpu-pro-install (use previously downloaded files in cache) | |
| amdgpu-uninstall | |
| sudo ./amdgpu-pro-install --opencl=legacy | |
| #https://askubuntu.com/questions/1040474/warning-amdgpu-dkms-failed-for-running-kernel-on-both-16-04-18-04 | |
| apt install amdgpu-dkms libdrm-amdgpu-amdgpu1 libdrm-amdgpu1 libdrm2-amdgpu | |
| # --- | |
| sudo apt-get -o Dpkg::Options::="--force-overwrite" dist-upgrade | |
| ## TEST | |
| /opt/rocm/bin/rocminfo | |
| /opt/rocm/opencl/bin/clinfo |
Same error with ROCm 6.1.
Opened an issue here: https://github.com/ROCm/ROCm/issues/3051
where is this damn mythical hsa-runtime-rocr4wsl-amdgpu ???
https://community.amd.com/t5/ai/new-amd-rocm-6-1-software-for-radeon-release-offers-more-choices/ba-p/688840
So WSL support would be ready at rocm 6.1.3
no it's here: https://youtu.be/p1jKqV9IV8I
Windows Driver: https://www.amd.com/en/resources/support-articles/release-notes/RN-RAD-WIN-24-10-21-01-WSL-2.html
Online Guide: https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-radeon.html
Offline PDF: https://rocm.docs.amd.com/_/downloads/radeon/en/latest/pdf/
where is this damn mythical
hsa-runtime-rocr4wsl-amdgpu???
Only exists in jammy/22.04 I manually added the old repos to a 24.10 install and got the packages installed, but there are other problems. Install a ubuntu 22.04 instance and it'll work fine.
Maybe it is just not ready for wsl yet, and will release in future versions?